addDomListener
void
addDomListener
(
Node
,
type
,
function
)
Adds a DOM event listener to a Node.
- Parameters:
-
Node <Node>Apply the event to this Node. -
type <string | string Array>A string or array of strings representing dom event types to apply. (do not include the "on" portion, e.g... use "mouseOver", not "onmouseOver") -
function <Function>A handler method for the event to invoke.
- Returns:
void
addListener
void
addListener
(
Node
,
type
,
fn
)
Adds a custom event listener to a Node.
- Parameters:
-
Node <Node | Node Array>Apply the event to a single Node or array of Nodes. -
type <string | String Array>Adds the event type listeners to the Nodes. -
fn <Function>A handler method for the event to invoke.
- Returns:
void
fire
return value
fire
(
Node
,
type
,
arguments
)
Fires a custom event.
- Parameters:
-
Node <Node>The Node to fire the event from. -
type <string>A string representing a custom event type to fire. -
arguments <Array>Array of parameter arguments to pass to the invoked custom event function.
- Returns:
return value - The return value of the event listeners handler.
preventDefault
void
preventDefault
(
Event
)
Prevents DOM level default event actions from occuring.
- Parameters:
-
Event <Event>A dom fired Event object.
- Returns:
void
stopPropogation
void
stopPropogation
(
Event
)
Stops DOM events from propogating or bubbling up the DOM.
- Parameters:
-
Event <Event>A dom fired Event object.
- Returns:
void