.toggleDraggable()
The function .toggleDraggable() will change an object's draggability. In other words, if an object is draggable, .toggleDraggable() will make it undraggable. If an object is not draggable, .toggleDraggable() will make it draggable. .toggleDraggable() takes in no parameters.
object.toggleDraggable();
//changes the draggability of 'object'
See Further:
- Ninja Supplies