Skip to content

Instantly share code, notes, and snippets.

@lessless
Created March 26, 2015 14:33
Show Gist options
  • Save lessless/072a935755379b194bb3 to your computer and use it in GitHub Desktop.
Save lessless/072a935755379b194bb3 to your computer and use it in GitHub Desktop.
//template is {{input value=filterString}}
import Ember from 'ember';
export default Ember.Controller.extend({
filterString:'',
doUpdateModel: function() {
var update = function() {
console.log('fired with: ' + this.get('filterString'));
},
debounce = function() {
Ember.run.debounce(this, update, 350);
};
Ember.run.next(this, debounce);
}.observes('filterString')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment