Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Draggable

.kill()

.kill( ) : Draggable

Disables the Draggable instance and removes it from the internal lookup table so that it is made eligible for garbage collection and it cannot be dragged anymore (unless enable() is called).

Returns : Draggable

the Draggable instance itself (to make chaining possible)

Details

Disables the Draggable instance and removes it from the internal lookup table so that it is made eligible for garbage collection and it cannot be dragged anymore (unless enable() is called). kill() is identical to disable() except that the latter doesn't remove it from the internal lookup table, thus you could still use Draggable.get("#yourID") to find the associated Draggable instance after being disabled, but if you kill it, the get() method won't be able to find the Draggable anymore (necessary for garbage collection). If you don't plan to use the Draggable instance anymore, kill() it.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×