• Application: JS
mQuery
A lightweight and selective jQuery library inspired by Angular's jQuery Lite. Created to be a "micro" version of jQuery which only includes a selection of its core methods.
This project began as an attempt to better understand jQuery, but it evolved into a really handy application. It is really convenient to have access to jQuery's core methods without any of the bulk (only 3k minified).
View SourceSupported Methods
add()— does not support query selector string.addClass()— does not support a function as parameterattr()— does not support a function as parameterchildren()— does not support filtering by a selector.css()— only gets and sets inline styles. Does not callgetComputedStyle().data()— only accepts strings as parameters.each()filter()find()— only accepts query selector string as parameter.first()hasClass()html()index()— only supports DOM elements as param.last()on()— does not support the selector or data parameter.parent()remove()removeClass()— only supports string for parameter.siblings()— does not support filtering by a selector.toggleClass()— only supports string for parameter.wrap()— only supports DOM element
Utility Functions
extendajax— only supports callback function for second param.isFunction