Namespace baja.nav
Nav Root
Defined in: nav.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
baja.nav.attach(event, the)
Attach an event handler to listen for navigation events.
|
| <static> |
baja.nav.detach(hName, func)
Detach an Event Handler.
|
| <static> |
baja.nav.getHandlers(hName)
Return an array of event handlers.
|
| <static> |
baja.nav.hasHandlers(hName)
Return true if there any handlers registered for the given handler name.
|
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.
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:
- {String} hName Optional
- the name of the handler to detach.
- {Function} func Optional
- the function to remove. It's recommended to supply this just in case other scripts have added event handlers.
To access multiple handlers, insert a space between the handler names.
- Parameters:
- {String} hName
- the name of the handler
- Returns:
- {Array}
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:
- {String} hName Optional
- the name of the handler. If undefined, then see if there are any handlers registered at all.
- Returns:
- {Boolean}