Methods
(inner) addEvent(element, type, handler)
Add an event of a type to an element and call a handler
Parameters:
Name | Type | Description |
---|---|---|
element |
object | the element |
type |
string | type of the event |
handler |
function | the function to call at the event |
- Source:
(inner) addInitEvent(the)
Bind a function to the window.init pseudo event
Parameters:
Name | Type | Description |
---|---|---|
the |
function | function to add to the init handler |
(inner) bind(functionref, mixed)
Bind variables to a function call creating a closure
Use this to circumvent variable scope problems when creating closures
inside a loop
Parameters:
Name | Type | Description |
---|---|---|
functionref |
fnc - the function to be called | |
mixed |
any arguments to be passed to the function |
- Source:
Returns:
functionref
(inner) clearEvents(element, type)
Clear all events of a type from an element
Parameters:
Name | Type | Description |
---|---|---|
element |
object | the element to clear an event type from |
type |
string | the event type |
- Source:
(inner) removeEvent(element, type, handler)
Remove an event from an element
Parameters:
Name | Type | Description |
---|---|---|
element |
object | the elment to remove the event from |
type |
string | the event to remove |
handler |
function | the handler that was added |
- Source: