Because you want the $ of jQuery without the jQuery.

added by bpwndaddy
6/16/2015 3:27:12 PM

2 Kicks, 315 Views

You could call this a microlibrary, but really it's just some code that works. You may be interested in this library if you get tired of the [].slice.call( document.querySelectorAll('.foo'), function(){ … rodeo. What bling'll do for ya: // forEach over the qSA result, directly. document.querySelectorAll('input').forEach(function (el) { // … }) // on() rather than addEventListener() document.body.on('dblclick', function (e) { // … }) // classic $ + on() $('p').on('click', function (e) { // … }) It doesn't do anything else. This is not a jQuery equivalent.


0 comments