Dabby.js v0.9.4
This release fixes a number of issues, adds more API coverage, and improves compatibility with jQuery:
- ES6 bundle now only exports $ as a module, tests now import the bundle instead of including separately
- Fixed bug in $.fn.ajax() where it could not handle a string as the data parameter
- Fixed bug in $.fn.css() where you couldn't pass an object of properties to update.
- Added $.isPlainObject() + tests
- Fixed bug in setCss() where it didn't handle unitless values, it now adds "px"
- Added $.fn.position()
- Fixed bug in $.fn.off() where the same arguments needed to be passed to successfully remove an event
- Removed instances of node.isSameNode() and replaced with === as is better supported
- Fixed bug in filterNodes() where matches cannot be performed on a document or window node
- Fixed bug in $.fn.trigger() where it could trigger native events
- Updated $.fn.class() to handle the classes in the correct order
- Methods in width-height.js,
$.fn.prop(), $ .fn.val(),$.fn.addClass(), $ .fn.toggleClass(),$.fn.removeClass(), $ .fn.html(), and $.fn.text() now can handle the value as a function - Fixed bug in $.fn.offset() where getVal() was not implemented correctly
- Updated getVal() to specify all arguments, and simplify how they are handled. It can also now handle the current value as a function
- Added more documentation