Created
October 18, 2016 20:10
-
-
Save hadijaveed/f75b98a81c6fc43ea3379087e3487570 to your computer and use it in GitHub Desktop.
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
// non-delegated events | |
ReactiveHbs.onRendered(function() { | |
let self = this; | |
$('button[type="submit"]').on('click', (e) => { | |
e.preventDefault(); | |
self.set('someData', $(elem).attr('data-text')); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment