event-facade-dom-ie.js revision cfdfb15e991f069dc5a2c3a724d378a6395d4eac
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * Custom event engine, DOM event listener abstraction layer, synthetic DOM
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * @module event
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * @submodule event-base
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove // IEEventFacade.superclass.constructor.apply(this, arguments);
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * (intentially left out of API docs)
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * Alternate Facade implementation that is based on Object.defineProperty, which
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * is partially supported in IE8. Properties that involve setup work are
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove * deferred to temporary getters using the static _define method.
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove // TODO: necessary?
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove proxy.hasOwnProperty = function () { return true; };
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grove proxy.stopImmediatePropagation = proto.stopImmediatePropagation;
288368074b7a92b28307521f68f41c3dd6e6969cRyan Grovevar imp = Y.config.doc && Y.config.doc.implementation,
buttonMap = {
relatedTargetMap = {
proto = {
init: function() {
var e = this._event,
x, y, d, b, de, t;
x = e.clientX;
y = e.clientY;
b = d.body;
this.pageX = x;
this.pageY = y;
t = e.toElement;
t = e.fromElement;
if (e.button) {
stopPropagation: function() {
stopImmediatePropagation: function() {
this.stopPropagation();
var e = this._event,
prop;
if (this._touch) {
charCode: function () {
var e = this._event;
button: function () {
var e = this._event;
return (e.button) ?
target: function () {
relatedTarget: function () {
var e = this._event,
currentTarget: function () {
wheelDelta: function () {
var e = this._event;
return (e.detail) ?
pageX: function () {
var e = this._event,
return val;
pageY: function () {
var e = this._event,
return val;
function val(v) {
delete o[prop];
configurable: true,
writable: true
return ret;
configurable: true
if (useLazyFacade) {
useLazyFacade = false;