Last active
August 29, 2015 14:02
-
-
Save incompl/3a444e9d981e0d2214da to your computer and use it in GitHub Desktop.
microquery
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 $ = function(selector, context) { | |
if (context === undefined) { | |
context = document; | |
} | |
var nl = context.querySelectorAll(selector); | |
return Array.prototype.slice.call(nl); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment