Last active
December 15, 2015 20:40
-
-
Save vadimdemedes/5319690 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 MyView = Chute.View.extend({ | |
handlers: { | |
'click a.someButton': 'doSomething', | |
'click a.anotherButton': function(e){ | |
// event fired | |
} | |
}, | |
doSomething: function(e){ | |
var $el = $(e.target); // getting a reference to an element, event was fired on | |
// this does not refer to an element | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment