Class core.EventNotifier
Defined in: EventNotifier.js.
Constructor Attributes | Constructor Name and Description |
---|---|
core.EventNotifier(eventIds)
|
Method Attributes | Method Name and Description |
---|---|
emit(eventId, args)
|
|
<inner> |
init()
|
<inner> |
register(eventId)
Register an event
|
subscribe(eventId, cb)
|
|
unsubscribe(eventId, cb)
|
Method Detail
{undefined}
emit(eventId, args)
- Parameters:
- {!string} eventId
- {*} args
- Returns:
- {undefined}
<inner>
{undefined}
init()
- Returns:
- {undefined}
<inner>
{undefined}
register(eventId)
Register an event
- Parameters:
- {!string} eventId
- Returns:
- {undefined}
{undefined}
subscribe(eventId, cb)
- Parameters:
- {!string} eventId
- {!Function} cb
- Returns:
- {undefined}
{undefined}
unsubscribe(eventId, cb)
- Parameters:
- {!string} eventId
- {!Function} cb
- Returns:
- {undefined}