Members
-
logger :NexusHoratio.base.Logger
-
Details
-
name :string
-
Details
-
shortName :string
-
Details
Methods
-
setScroller( [ scroller ] ) → {ScrollerService}
-
Description
Sets the
Scrollerto manage with this service.If not value is passed, any existing instance will be removed.
Parameters
Name Type Attributes Default Description scrollerScroller <optional> The instance to manage.
Returns
Details
-
activate()
-
Description
Called each time service is activated.
Fires
Details
-
deactivate()
-
Description
Called each time service is deactivated.
Fires
Details
-
on( eventType, func ) → {NexusHoratio.base.Service}
-
Description
Attach a function to an eventType.
Parameters
Name Type Description eventTypeNexusHoratio.base.Dispatcher~EventType Event type to connect with.
funcNexusHoratio.base.Dispatcher~Handler Single argument function to call.
Returns
Details
-
off( eventType, func ) → {NexusHoratio.base.Service}
-
Description
Remove all instances of a function registered to an eventType.
Parameters
Name Type Description eventTypeNexusHoratio.base.Dispatcher~EventType Event type to disconnect from.
funcNexusHoratio.base.Dispatcher~Handler Function to remove.
Returns
Details
-
allowReactivation( allow ) → {NexusHoratio.base.Service}
-
Parameters
Name Type Description allowboolean Whether to allow this service to be activated when already active.
Returns
Details
-
setShortName( shortName ) → {NexusHoratio.base.Service}
-
Parameters
Name Type Description shortNamestring Custom name portion of this instance.
Returns
Details
Events
-
activate
-
Details
-
activated
-
Details
-
deactivate
-
Details
-
deactivated
-
Details