notifier

notifier

Methods

# (static) after(name, action, contextopt)

Source:

Alias of once('after' + name)

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# (static) before(name, action, contextopt)

Source:

Alias of once('before' + name)

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# (static) error(action, contextopt)

Source:

Alias of on('error')

Parameters:
Name Type Attributes Description
action function
context Object <optional>

# (static) has(name, action) → {boolean}

Source:

If registered the event handler

Parameters:
Name Type Description
name string
action function
Returns:
Type
boolean

# (static) off(action, contextopt)

Source:

Remove event listener

Parameters:
Name Type Attributes Description
action function
context Object <optional>

# (static) on(name, action, contextopt)

Source:

Register event handler

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# (static) once(name, action, contextopt)

Source:

Register event, event will only be triggered once and then removed

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# (static) success(action, contextopt)

Source:

Alias of on('success')

Parameters:
Name Type Attributes Description
action function
context Object <optional>

# (static) trigger(name)

Source:

Trigger event

Parameters:
Name Type Description
name string