Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created October 31, 2015 14:50
Show Gist options
  • Save NetguruGist/3e1e5477a56a8593ca62 to your computer and use it in GitHub Desktop.
Save NetguruGist/3e1e5477a56a8593ca62 to your computer and use it in GitHub Desktop.
runloopexample3 ruby
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