Skip to content

Instantly share code, notes, and snippets.

@jamwaffles
Created November 10, 2014 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamwaffles/2fd3c490b541beca6232 to your computer and use it in GitHub Desktop.
Save jamwaffles/2fd3c490b541beca6232 to your computer and use it in GitHub Desktop.
LMAO
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