new Event(type)
Event class
Base class for all events triggered in ConboJS
Parameters:
Name | Type | Description |
---|---|---|
type |
string | The type of event this object represents |
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
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 |
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 |
- Overrides:
- 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
Returns:
A reference to this event instance
- Type
- conbo.Event
stopImmediatePropagation() → {conbo.Event}
Keep the rest of the handlers from being executed
Returns:
A reference to this event
- Type
- conbo.Event
stopPropagation() → {conbo.Event}
Not currently used
Returns:
A reference to this event instance
- Type
- conbo.Event
toString() → {string}
String representation of the current class
- Overrides:
- Source:
Returns:
- Type
- string