Created
October 31, 2015 14:50
-
-
Save NetguruGist/3e1e5477a56a8593ca62 to your computer and use it in GitHub Desktop.
runloopexample3 ruby
This file contains 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
App.SomeValueComponent = Ember.Component.extend({ | |
valueChanged: function(val) { | |
this.set('value', val); | |
this.sendAction('valueChange'); | |
}, | |
didInsertElement: function() { | |
this.$("input").on("keyup", Ember.run.bind(this, function() { | |
this.valueChanged(this.$("input").val()); | |
})); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment