Created
August 24, 2012 03:27
-
-
Save tanema/3445133 to your computer and use it in GitHub Desktop.
Ember trigerable text field so when enter button is pressed an action is called
This file contains hidden or 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
ABApp.TriggerableTextField = Ember.TextField.extend(Ember.TargetActionSupport, { | |
insertNewline: function() { | |
this.triggerAction(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment