Created
May 2, 2013 21:18
-
-
Save WillsonSmith/5505539 to your computer and use it in GitHub Desktop.
Quick and small way to make a "bling" element selector. Avoid JQuery when it is not necessary.
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 $ = document.querySelectorAll.bind(document); | |
Element.prototype.on = Element.prototype.addEventListener; | |
$('@cursor')[0].on('touchstart', handleTouch); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment