unselect 1.4.6
Triggered when the current selection is cleared.
function( view, jsEvent )
A selection might be cleared for a number of reasons:
-
The user clicks away from the current selection (doesn’t happen when unselectAuto is
false
). -
The user makes a new selection. The
unselect
callback will be fired before the new selection occurs. -
The user moves forward or backward in the current view, or switches to a new view.
-
The unselect method is called through the API.
jsEvent
holds the primitive JavaScript event with information such as mouse coordinates.
If unselect
has been triggered via the unselect method, jsEvent
will be undefined
.
(added in version 1.4.7)