Skip to content

Instantly share code, notes, and snippets.

@nalmeida
Created August 15, 2013 17:43
Show Gist options
  • Save nalmeida/6242907 to your computer and use it in GitHub Desktop.
Save nalmeida/6242907 to your computer and use it in GitHub Desktop.
var $ = (function (dollar) {
if (dollar) {
return dollar;
}
return function (selector) {
return Array.prototype.slice.call(document.querySelectorAll(selector));
};
}(window.$));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment