Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created March 20, 2014 18:56
Show Gist options
  • Select an option

  • Save bcardarella/9671228 to your computer and use it in GitHub Desktop.

Select an option

Save bcardarella/9671228 to your computer and use it in GitHub Desktop.
// This doesn't work because the method is always unique
Ember.run.debounce(this, function() {
// blah blah blah
}, 1000);
// This would run a comparison against target & "unique-id" rather than target & method
Ember.run.debounce(this, function() {
// blah blah blah
}, 1000, 'unique-id');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment