Class: DataEvent

conbo.DataEvent()

new DataEvent()

DataEvent class Event with data property to enable arbitrary data to be passed when an event is dispatched
Author:
  • Neil Rackett
Source:

Extends

Members

supro

Similar to `super` in ActionScript or Java, this property enables you to access properties and methods of the super class prototype, which is the case of JavaScript is the next prototype up the chain
Inherited From:
Source:

Methods

bindAll(…methodNameopt) → {this}

Scope all methods of this class instance to this class instance
Parameters:
Name Type Attributes Description
methodName string <optional>
<repeatable>
Specific method names to bind (all will be bound if none specified)
Inherited From:
Source:
Returns:
Type
this

clone() → {conbo.Event}

Create an identical clone of this event
Inherited From:
Source:
Returns:
A clone of this event
Type
conbo.Event

constructor(type)

Constructor: DO NOT override! (Use initialize instead)
Parameters:
Name Type Description
type string The type of event this class instance represents
Inherited From:
Source:

declarations() → {void}

Declarations is used to declare instance properties used by this class
Parameters:
Type Attributes Description
* <repeatable>
Inherited From:
Source:
Returns:
Type
void

destroy() → {void}

Clean everything up ready for garbage collection (you should override in your own classes)
Inherited From:
Source:
Returns:
Type
void

initialize(type, data)

Initialize: Override this!
Parameters:
Name Type Description
type string The type of event this class instance represents
data * Data to store in the event's data property
Inherited From:
Source:

preinitialize() → {void}

Preinitialize is called before any code in the constructor has been run
Parameters:
Type Attributes Description
* <repeatable>
Inherited From:
Source:
Returns:
Type
void

preventDefault() → {conbo.Event}

Prevent whatever the default framework action for this event is
Inherited From:
Source:
Returns:
A reference to this event instance
Type
conbo.Event

stopImmediatePropagation() → {conbo.Event}

Keep the rest of the handlers from being executed
Inherited From:
Source:
Returns:
A reference to this event
Type
conbo.Event

stopPropagation() → {conbo.Event}

Not currently used
Inherited From:
Source:
Returns:
A reference to this event instance
Type
conbo.Event

toString() → {string}

String representation of the current class
Inherited From:
Source:
Returns:
Type
string