event-facade-dom-ie.js revision e3cee6b38c62be71fcb6028e299980eb886a0544
/*
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event
* @submodule event-base
*/
var IEEventFacade = function() {
// IEEventFacade.superclass.constructor.apply(this, arguments);
};
init: function() {
var e = this._event,
x, y, d, b, de, t;
if (('clientX' in e) && (!x) && (0 !== x)) {
x = e.clientX;
y = e.clientY;
b = d.body;
de = d.documentElement;
this.pageX = x;
this.pageY = y;
}
if (e.type == "mouseout") {
t = e.toElement;
} else if (e.type == "mouseover") {
t = e.fromElement;
}
this.relatedTarget = resolve(t);
},
stopPropagation: function() {
var e = this._event;
e.cancelBubble = true;
this.stopped = 1;
},
stopImmediatePropagation: function() {
this.stopPropagation();
this.stopped = 2;
},
preventDefault: function(returnValue) {
this.prevented = 1;
}
});