Skip to content

Dabby.js v0.9.10

Compare
Choose a tag to compare
@hexydec hexydec released this 14 Nov 21:33
· 113 commits to master since this release

This release fixes a number of bugs in the codebase that add stability when using the library in more advanced and detailed ways. It also improves versatility with regards to using the library with minified HTML, where some attributes won't be set such as a form action.

More documentation has also be added as well as improved compatibility with jQuery:

  • Added licence info
  • Added documentation for $.fn.offset(), $.fn.offsetParent(), $.fn.position() and $.fn.scroll()
  • Added more tests for $.fn.val()
  • Updated $.fn.ajax() to make location.href default for settings.url
  • Replaced typeof val === "undefined" with val === undefined where possible
  • Updated $.fn.val() to cast to a string with a string concatenation.
  • Used a shorter check for null or undefined in $.map()
  • Fixed issue in $.fn.ajax() where if the URL was null, the settings were not handled correctly
  • Fixed bug in insert.js where if you requested an insert on multiple items using a callback, nothing would be inserted
  • $.fn.attr(), $.fn.class(), $.fn.prop(), $.fn.off() and getVal() is now faster when the collection is empty
  • Reworked $.fn.prop() to do its work in a single loop rather than two
  • Fixed bug in $.fn.val() where when setting select values, the value attribute was used which doesn't work in IE11
  • Fixed bug in $() where it was using new Set() which couldn't be converted to ES5 without more polyfills, it now integrates a unique check into the filter() call that refines by node type.
  • Fixed bug in $.fn.on() where events weren't correctly delegated, it now looks up the target against the children of the currentTarget correctly
  • Added missing functionality to $.fn.clone() where it didn't have the ability to copy and deep copy data and events on cloned elements
  • Fixed bug in insert.js, replace.js and wrapall.js where cloned elements didn't have their data and events copied, cloning is now routed through $.fn.clone()
  • Removed builds from version control, they will now be attached to releases
  • Fixed bug in $.post() where if the URL is null, it detected it as a settings object which cause it to crash