new EventProxy(eventDispatcher)
Event Proxy
Standardises the adding and removing of event listeners across DOM elements,
Conbo EventDispatchers and jQuery instances
Parameters:
Name | Type | Description |
---|---|---|
eventDispatcher |
Object | Element, EventDispatcher or jQuery object to be proxied |
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
addEventListener(type, handler) → {conbo.EventProxy}
Add a listener for a particular event type
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Type of event ('change') or events ('change blur') |
handler |
function | Function that should be called |
Returns:
A reference to this class instance
- Type
- conbo.EventProxy
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
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() → {void}
Initialize (entry point) is called immediately after the constructor has completed
Parameters:
Type | Attributes | Description |
---|---|---|
* |
<repeatable> |
- Inherited From:
- Source:
Returns:
- Type
- void
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
removeEventListener(type, handler) → {conbo.EventProxy}
Remove a listener for a particular event type
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Type of event ('change') or events ('change blur') |
handler |
function | Function that should be called |
Returns:
A reference to this class instance
- Type
- conbo.EventProxy
toString() → {string}
String representation of the current class
- Inherited From:
- Source:
Returns:
- Type
- string