Class Event.Facade
Wraps a DOM event, properties requiring browser abstraction are
fixed here. Provids a security layer when required.
Properties
The button that was pushed.
The charCode for key events. Same as keyCode
Node reference for the element that the listener was attached to.
The event details. Currently supported for Custom
Events only, where it contains the arguments that
were passed to fire().
The keyCode for key events. Uses charCode if keyCode is not available
The X location of the event on the page (including scroll)
The Y location of the event on the page (including scroll)
Node reference to the relatedTarget
Node reference for the targeted element
The button that was pushed. Same as button.
Methods
void
halt
(
immediate
)
Stops the event propagation and prevents the default
event behavior.
- Parameters:
-
immediate
<boolean>
if true additional listeners
on the current target will not be executed
- Returns:
void
void
preventDefault
(
)
Prevents the event's default behavior
void
stopImmediatePropagation
(
)
Stops the propagation to the next bubble target and
prevents any additional listeners from being exectued
on the current target.
void
stopPropagation
(
)
Stops the propagation to the next bubble target