Created
November 10, 2014 12:15
-
-
Save jamwaffles/2fd3c490b541beca6232 to your computer and use it in GitHub Desktop.
LMAO
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
Backbone.$ = function(el) { | |
return { | |
on: function(eventName, handler) { | |
el.addEventListener(eventName, handler) | |
}, | |
off: function() { | |
console.error("`off` isn't implemented. If you need to use this, implement it or you'll get memory leaks") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment