Created
April 19, 2013 07:19
-
-
Save lvivski/5418658 to your computer and use it in GitHub Desktop.
jQuery mini
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
function $(selector, context) { | |
return (context || document).querySelector(selector) | |
} | |
$.all = function (selector, context) { | |
return Array.prototype.slice.call( | |
(context || document).querySelectorAll(selector) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's enough jQuery for you