Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created April 13, 2013 18:54
Show Gist options
  • Save fritz-gerneth/5379608 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/5379608 to your computer and use it in GitHub Desktop.
var initial = true;
var handle = query.observeChanges({
added: function (id, user} {
if (!initial) doSomeAction();
}
});
intial = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment