new ScrollerService( instanceName )

Description

Manage a {Scroller} as a NexusHoratio.base.Service.

Parameters
Name Type Description
instanceName string

Custom portion of this instance.

Members


logger :NexusHoratio.base.Logger


name :string

Details
string

shortName :string

Methods


setScroller( [ scroller ] ) → {ScrollerService}

Description

Sets the Scroller to manage with this service.

If not value is passed, any existing instance will be removed.

Parameters
Name Type Attributes Default Description
scroller Scroller <optional>

The instance to manage.

Returns

This instance, for chaining.


activate()


deactivate()


on( eventType, func ) → {NexusHoratio.base.Service}

Description

Attach a function to an eventType.

Parameters
Name Type Description
eventType NexusHoratio.base.Dispatcher~EventType

Event type to connect with.

func NexusHoratio.base.Dispatcher~Handler

Single argument function to call.

Returns

This instance, for chaining.


off( eventType, func ) → {NexusHoratio.base.Service}

Description

Remove all instances of a function registered to an eventType.

Parameters
Name Type Description
eventType NexusHoratio.base.Dispatcher~EventType

Event type to disconnect from.

func NexusHoratio.base.Dispatcher~Handler

Function to remove.

Returns

This instance, for chaining.


allowReactivation( allow ) → {NexusHoratio.base.Service}

Parameters
Name Type Description
allow boolean

Whether to allow this service to be activated when already active.

Returns

This instance, for chaining.


setShortName( shortName ) → {NexusHoratio.base.Service}

Parameters
Name Type Description
shortName string

Custom name portion of this instance.

Returns

This instance, for chaining.

Events


activate


activated


deactivate


deactivated