From: Eduardo Lundgren Date: Thu, 5 Jun 2008 00:35:05 +0000 (+0000) Subject: jquery.simulate - IE won't allow assignment to toElement or fromElement X-Git-Tag: 1.5.1~203 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a91370e4f5621b85e0b39c04ebf76274c9703064;p=jquery-ui.git jquery.simulate - IE won't allow assignment to toElement or fromElement --- diff --git a/ui/tests/jquery.simulate.js b/ui/tests/jquery.simulate.js index 8246521f6..d6ddf4dd4 100644 --- a/ui/tests/jquery.simulate.js +++ b/ui/tests/jquery.simulate.js @@ -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;