Skip to content

v0.22.0

Latest
Compare
Choose a tag to compare
@Mobius1 Mobius1 released this 12 Oct 16:37
· 2 commits to master since this release

API Changes

  • Added once() method to allow an event to be fired once only (See docs)
  • Added undo() and redo() methods as aliases of state('undo') and state('redo') respectively
  • Added handle option to only allow selection to start from that element (See docs)
  • Added destroyed event (See docs)
  • Changed toggle() method to allow passing a boolean as the second argument to force the state (See docs)
  • Deprecated bind() and unbind() methods and added more semantic attachEvents() and detachEvents()
  • Deprecated appendTo option and added the container option as a replacement (See docs)

Fixes

  • Fixed mouseover event not being removed when destroying or disabling an instance

Perfrormance Tweaks

  • Replaced slower forEach loops
  • Removed the classList shim in favour of the native Element.classList property