Skip to content

Instantly share code, notes, and snippets.

@lvivski
Created April 19, 2013 07:19
Show Gist options
  • Select an option

  • Save lvivski/5418658 to your computer and use it in GitHub Desktop.

Select an option

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

lvivski commented Apr 23, 2013

Copy link
Copy Markdown
Author

That's enough jQuery for you

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