Skip to content

Instantly share code, notes, and snippets.

@lolikroli
Created January 22, 2014 11:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lolikroli/8556948 to your computer and use it in GitHub Desktop.
Save lolikroli/8556948 to your computer and use it in GitHub Desktop.
A tiny JavaScript library for ourselves for simple DOM querying. //http://blog.adtile.me/2014/01/16/a-dive-into-plain-javascript/?utm_source=dlvr.it&utm_medium=facebook
var $ = document.querySelectorAll.bind(document);
Element.prototype.on = Element.prototype.addEventListener;
$('#somelink')[0].on('touchstart', handleTouch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment