Skip to content

Instantly share code, notes, and snippets.

@johanvalcoog
Forked from joewest/clickable_view.js
Created January 10, 2012 19:28
Show Gist options
  • Save johanvalcoog/1590669 to your computer and use it in GitHub Desktop.
Save johanvalcoog/1590669 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