Releases: Mobius1/Selectable
Releases · Mobius1/Selectable
v0.22.0
API Changes
- Added
once()
method to allow an event to be fired once only (See docs) - Added
undo()
andredo()
methods as aliases ofstate('undo')
andstate('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()
andunbind()
methods and added more semanticattachEvents()
anddetachEvents()
- Deprecated
appendTo
option and added thecontainer
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 nativeElement.classList
property