Class createjs.EventDispatcher.Context
Defined in: event_dispatcher.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.EventDispatcher.Context(listener, scope, once, data)
An inner class that represents the context of an event listener.
|
Method Attributes | Method Name and Description |
---|---|
dispatch(event)
Dispatches an event to this listener.
|
|
isEqual(listener)
Returns whether this listener is equal to the specified listener.
|
Class Detail
createjs.EventDispatcher.Context(listener, scope, once, data)
An inner class that represents the context of an event listener. This class
is used by the createjs.EventDispatcher class to execute an event listener.
event listener.
- Parameters:
- {Function|Object} listener
- {Object} scope
- {boolean} once
- {*} data
Method Detail
{boolean}
dispatch(event)
Dispatches an event to this listener.
- Parameters:
- {createjs.Event} event
- Returns:
- {boolean}
{boolean}
isEqual(listener)
Returns whether this listener is equal to the specified listener.
- Parameters:
- {Function|Object} listener
- Returns:
- {boolean}