Namespace: Navigation:offHistoryChange

Navigation:offHistoryChange

Methods

offHistoryChange(callbackopt, nullable) → {Boolean}

Removes registered history change handlers, that have been created with "onHistoryChange". If a callback is provided, that callback is removed from callbacks, if the function is called without parameters all callbacks are removed and the event listener for the callbacks is removed.

Parameters:
Name Type Attributes Default Description
callback function <optional>
<nullable>
true

reference to the callback to be removed, if missing all callbacks are removed

Source:
See:
Throws:

error if callback is no function

Returns:
true if callback(s) are/were removed, false if nothing was done
Type
Boolean
Example
offHistoryChange(thatOneCallback);
offHistoryChange();