Skip to content

Instantly share code, notes, and snippets.

@joewest
Created December 14, 2011 18:19
Show Gist options
  • Save joewest/1477799 to your computer and use it in GitHub Desktop.
Save joewest/1477799 to your computer and use it in GitHub Desktop.
ember.js misc View stuff
App.ClickableView = Ember.View.extend({
click: function(evt) {
console.log("ClickableView was clicked!");
}
});
App.InputView = Ember.TextField.extend({
change: function(event) {
this._super();
this._elementValueDidChange();
console.log(this.get('value'));
return false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment