mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
jquery.simulate - IE won't allow assignment to toElement or fromElement
This commit is contained in:
parent
ecca74b11f
commit
a91370e4f5
@ -72,6 +72,10 @@ $.extend($.simulate.prototype, {
|
|||||||
} else if (document.createEventObject) {
|
} else if (document.createEventObject) {
|
||||||
evt = document.createEventObject();
|
evt = document.createEventObject();
|
||||||
$.extend(evt, e);
|
$.extend(evt, e);
|
||||||
|
|
||||||
|
// IE won't allow assignment to toElement or fromElement
|
||||||
|
evt.relatedTarget = relatedTarget;
|
||||||
|
|
||||||
// fix for 2 pixels bug from mousecords
|
// fix for 2 pixels bug from mousecords
|
||||||
evt.pageX = options.x; evt.pageY = options.y;
|
evt.pageX = options.x; evt.pageY = options.y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user