Last active
December 21, 2015 00:48
-
-
Save dspangen/6222521 to your computer and use it in GitHub Desktop.
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
var View = Marionette.ItemView.extend({ | |
events: { | |
"input input.name": "onNameChange", | |
"input input.email": "onEmailChange" | |
}, | |
onNameChange: function(e) { | |
this.model.set('name', $(e.currentTarget).val()); | |
}, | |
onEmailChange: function(e) { | |
this.model.set('email', $(e.currentTarget).val()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment