UNPKG

emile

Version:

no-thrills stand-alone CSS animation JavaScript framework

46 lines (39 loc) 914 B
/*! * Ender.js: a small, powerful JavaScript library composed of application agnostic submodules * copyright Dustin Diaz & Jacob Thornton 2011 (@ded @fat) * https://github.com/ded/Ender.js * License MIT */ !function (context) { function aug(o, o2) { for (var k in o2) { o[k] = o2[k]; } } function _$(s, r) { this.elements = $._select(s, r); this.length = this.elements.length; for (var i = 0; i < this.length; i++) { this[i] = this.elements[i]; } } function $(s, r) { return new _$(s, r); } aug($, { ender: function (o, proto) { aug(proto ? _$.prototype : $, o); }, _select: function () { return []; } }); var old = context.$; $.noConflict = function () { context.$ = old; return this; }; (typeof module !== 'undefined') && module.exports ? (module.exports = $) : (context.$ = $); }(this);