Created
March 26, 2015 14:33
-
-
Save lessless/072a935755379b194bb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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