jquery.simulate - IE won't allow assignment to toElement or fromElement

This commit is contained in:
Eduardo Lundgren 2008-06-05 00:35:05 +00:00
parent ecca74b11f
commit a91370e4f5

View File

@ -72,6 +72,10 @@ $.extend($.simulate.prototype, {
} else if (document.createEventObject) {
evt = document.createEventObject();
$.extend(evt, e);
// IE won't allow assignment to toElement or fromElement
evt.relatedTarget = relatedTarget;
// fix for 2 pixels bug from mousecords
evt.pageX = options.x; evt.pageY = options.y;