- A jQuery-compatible and non-All-in-One library which is more "Zepto" than Zepto.js
- Focus on DOM operations and mobile platform, wrap native API wherever possible.
define("dollar", ["dollar/android23"], function($){
return $;
});
define("dollar", ["dollar/jquery"], function($){
return $;
});
- DollarJS can either be viewed as an independent library, or as a part of OzJS mirco-framework.
- It's wrapped as an AMD (Asynchronous Module Definition) module. You should use it with oz.js (or require.js or similar for handling dependencies).
- If you want to make it available for both other AMD code and traditional code based on global namespace. OzJS provides a mini define/require implementation to transform AMD module into traditional module pattern.
- See http://ozjs.org for details.
Add to your project as new dependency
Or download directly from Github
Under construction...
var $ = require('dollar');
$()
--
- support all Array methods
find()
--eq()
--not()
--matches()
--has()
--parent()
--parents()
--closest()
--siblings()
--next()
--nextAll()
--nextUntil()
--prev()
--prevAll()
--prevUntil()
--children()
--contents()
--
is()
--hasClass()
--
addClass()
--removeClass()
--toggleClass()
--attr()
--removeAttr()
--prop()
--removeProp()
--data()
--removeData()
--val()
--empty()
--html()
--text()
--css()
--hide()
--show()
--
offset()
--width()
--height()
--scrollLeft()
--scrollTop()
--
appendTo()
--append()
--prependTo()
--prepend()
--insertBefore()
--before()
--insertAfter()
--after()
--replaceAll()
--replaceWith()
--wrap(boxes)
--wrapAll()
--wrapInner()
--unwrap()
--clone()
--remove()
--
one()
--on()
--off()
--trigger()
--
end()
--each()
--
$.matchesSelector | $.matches
--$.contains
--$.createNodes
--$.camelize
--$.dasherize
--$.Event
--
$.ajax()
--$.when()
--$.type()
--$.isArray()
--$.proxy()
--$.extend()
--$.fn.ready()
--$.fn.animate()
--$.fn.delegate()
--$.fn.map()
--$.fn.data(object)
--$.fn.detach(object)
--
Under construction...
Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.