Skip to content
Permalink
Browse files

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

  • Loading branch information
eduardolundgren committed Jun 5, 2008
1 parent ecca74b commit a91370e4f5621b85e0b39c04ebf76274c9703064
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;

0 comments on commit a91370e

Please sign in to comment.
You can’t perform that action at this time.