Namespace pulp.cls.event
Defined in: pulp.cls.event.js.
Method Summary
Method Detail
^ top
pulp.cls.event.defineEvent(ev [, options={}])
-> Array|Object
Define an event to have certain properties
Parameters:
| {String} | ev | The type of event (e.g. "my:custom") |
| {Object} | options?, Default: {} | Properties to set on the event: |
| {Object} | options.target?, Default: this | The target object |
| {Boolean} | options.bubbles?, Default: true | If false, observers cannot stop firing of subsequent handlers |
| {Boolean} | options.cancelable?, Default: true | If false, observers cannot stop firing of default action |
| {Object} | options.scope?, Default: this | The scope (object) in which to call handlers |
| {Boolean} | options.notifyOnce?, Default: false | If true, the event will notify only once; callbacks subscribed after firing will be called immediately |
Returns:
| {Array|Object} |
pulp.cls.event.getDefinedEvent(type)
-> pulp.cls.event.definedEvent
Return a reference to the defined event of the given event type
Parameters:
| {String} | type | The event type to return |
Returns:
| {pulp.cls.event.definedEvent} |