Skip to content

Dabby.js v0.9.9

Compare
Choose a tag to compare
@hexydec hexydec released this 31 Jul 10:12
· 121 commits to master since this release

This release fixes a number of bugs in the codebase and improves compatibility with jQuery, as well as adding new tests and more documentation:

  • Fixed issue in show-hide.js where the initial display property was not remembered and restored on toggle
  • Rewrote $.fn.insertBefore()/$.fn.prependTo()/$.fn.appendTo()/$.fn.insertAfter() to use their sans "to" equivalent but swap the argument order, as it was using methods that are not supported by IE11
  • Rewrote $.fn.before/$.fn.prepend()/$.fn.append()/$.fn.after() to better handle copying and cloning nodes. Added lots of new tests
  • Fixed bug in $.fn.add() where it was adding items to the current collection rather than creating a new collection which was causing the output to not be immutable
  • Fixed bug in next-prev/next-prev.js where $.fn.next() and $.fn.nextAll()'s functionality was swapped, also $.fn.prev() and $.fn.prevAll()
  • Fixed bugs in next-prev.js where the order of returned elements was not always correct
  • Added tests for all methods in next-prev.js
  • Fixed bug in $.fn.nextUntil() and $.fn.prevUntil() where it returned the until element, whereas it shouldn't
  • Added documentation for .show-hide.js(), .hide(), .toggle(), .width(), .height(), .innerWidth(), .innerHeight(), .outerWidth(), and .outerHeight()
  • Added display parameter to $.fn.toggle()
  • Reworked show-hide.js to enable the above and to remove the display property if it was removed by default and we are going back to the default state
  • Updated $() to remove duplicates from the input nodes when create dabby objects
  • Fixed ordering bugs in insert.js, it now matches jQuery in the insert order
  • Added tests to check ordering in insert.js
  • Fixed documentation issue in show-hide/readme.md where it was incorrectly noted that there were no differences to jQuery, whereas they don't support animations
  • Reworked $.fn.closest() as it was returning more than one node per item in the collection
  • Updated layout of width-height/readme.md and added examples for all methods
  • Added more tests for $.fn.add()
  • Fixed issues with ordering in next-prev/test.js
  • Removed browserslist definitions from gruntfile.js and added to package.json
  • Code optimisations for next-prev/next-prev.js and parents/parents.js.
  • Added map file for dabby.js