I have the following function:
onDocumentKeyUp: function (e) { if (e.keyCode === 27) { this.deactivate(); } }
I wanted to bind t
Draw your attention on data parameter of the on method here: http://api.jquery.com/on/ Also you can utilize jQuery.proxy method: http://api.jquery.com/jQuery.proxy/
data
on
Here is jsFiddle: jsFiddle