Created
December 14, 2011 18:19
-
-
Save joewest/1477799 to your computer and use it in GitHub Desktop.
ember.js misc View stuff
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.ClickableView = Ember.View.extend({ | |
click: function(evt) { | |
console.log("ClickableView was clicked!"); | |
} | |
}); |
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.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