Wraps a DOM event, properties requiring browser abstraction are fixed here. Provids a security layer when required.
Wrapper function for Object.defineProperty that creates a property whose value will be calulated only when asked for. After calculating the value, the getter wll be removed, so it will behave as a normal property beyond that point. A setter is also assigned so assigning to the property will clear the getter, so foo.prop = 'a'; foo.prop; won't trigger the getter, overwriting value 'a'.
Used only by the DOMEventFacades used by IE8 when the YUI configuration
lazyEventFacade is set to true.
Adds touch event facade normalization properties to the DOM event facade
Stops the event propagation and prevents the default event behavior.
if true additional listeners on the current target will not be executed
Prevents the event's default behavior
sets the returnValue of the event to this value (rather than the default false value). This can be used to add a customized confirmation query to the beforeunload event).
Returns a wrapped node. Intended to be used on event targets, so it will return the node's parent if the target is a text node.
If accessing a property of the node throws an error, this is probably the anonymous div wrapper Gecko adds inside text nodes. This likely will only occur when attempting to access the relatedTarget. In this case, we now return null because the anonymous div is completely useless and we do not know what the related target was because we can't even get to the element's parent node.
Stops the propagation to the next bubble target and prevents any additional listeners from being exectued on the current target.
Stops the propagation to the next bubble target
The native event
A object literal with keys "start", "end", and "move". The value for each key is a string representing the event for that environment. For touch environments, the respective values are "touchstart", "touchend" and "touchmove". Mouse and MSPointer environments are also supported via feature detection.
true if the "alt" or "option" key is pressed.
An array of event-specific touch events.
touchstart, the touch points that became active with the current
touchmove, the touch points that have changed since the last
touchend, the touch points that have been removed from the touch
The charCode for key events. Same as keyCode
The X location of the event in the viewport
The Y location of the event in the viewport
true if the "Ctrl" or "control" key is pressed.
Node reference for the element that the listener was attached to.
The keyCode for key events. Uses charCode if keyCode is not available
true if the "Windows" key on a Windows keyboard, "command" key on an
Apple keyboard, or "meta" key on other keyboards is pressed.
The X location of the event on the page (including scroll)
The Y location of the event on the page (including scroll)
true if the shift key is pressed.
Node reference for the targeted element
Array of individual touch events still in contact with the touch
surface and whose
touchstart event occurred inside the same taregt
element as the current target element.
Array of individual touch events for touch points that are still in contact with the touch surface.
The name of the event (e.g. "click")
webkit key remapping required for Safari < 3.1
Number representing the direction and velocity of the movement of the mousewheel. Negative is down, the higher the number, the faster. Applies to the mousewheel event.
The button that was pushed. Same as button.