Skip to content

Instantly share code, notes, and snippets.

@lvivski
Created April 19, 2013 07:19
Show Gist options
  • Save lvivski/5418658 to your computer and use it in GitHub Desktop.
Save lvivski/5418658 to your computer and use it in GitHub Desktop.
jQuery mini
function $(selector, context) {
return (context || document).querySelector(selector)
}
$.all = function (selector, context) {
return Array.prototype.slice.call(
(context || document).querySelectorAll(selector)
)
}
@lvivski
Copy link
Author

lvivski commented Apr 23, 2013

That's enough jQuery for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment