Nav Root
Members
-
NavFileSpace.
Type:
Methods
-
<static> attach(event, the)
-
Attach an event handler to listen for navigation events.
Please note, navigation events only cover 'add', 'remove', 'renamed' and 'reordered'.
For a list of all the event handlers and some of this method's more advanced
features, please see baja.Subscriber#attach.Parameters:
Name Type Description event
String handler name.
the
function event handler function.
-
<static> detach( [hName] [, func])
-
Detach an Event Handler.
If no arguments are used with this method then all events are removed.
For some of this method's more advanced features, please see baja.Subscriber#detach.
Parameters:
Name Type Argument Description hName
String <optional>
the name of the handler to detach.
func
function <optional>
the function to remove. It's recommended to supply this just in case
other scripts have added event handlers. -
<static> getHandlers(hName)
-
Return an array of event handlers.
To access multiple handlers, insert a space between the handler names.
Parameters:
Name Type Description hName
String the name of the handler
Returns:
- Type
- Array
-
<static> hasHandlers( [hName])
-
Return true if there any handlers registered for the given handler name.
If no handler name is specified then test to see if there are any handlers registered at all.
Multiple handlers can be tested for by using a space character between the names.
Parameters:
Name Type Argument Description hName
String <optional>
the name of the handler. If undefined, then see if there are any
handlers registered at all.Returns:
- Type
- Boolean