]> source.dussan.org Git - jquery-ui.git/commitdiff
removed setting toElement/fromEelement as this is handled by the browser
authorRichard Worth <rdworth@gmail.com>
Thu, 5 Jun 2008 11:59:32 +0000 (11:59 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 5 Jun 2008 11:59:32 +0000 (11:59 +0000)
ui/tests/jquery.simulate.js

index c498293dcb3490e1c08e2d6b1efaae36d916bf6b..3552cc7d62a50ca67cfb71f26bae6213049050bf 100644 (file)
@@ -62,13 +62,6 @@ $.extend($.simulate.prototype, {
                                e.screenX, e.screenY, e.clientX, e.clientY,\r
                                e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\r
                                e.button, relatedTarget);\r
-                       \r
-                       // check to see if relatedTarget has been assigned\r
-                       if (relatedTarget && !evt.relatedTarget) {\r
-                               if (/^mouseout$/.test(type)) evt.toElement = relatedTarget;\r
-                               else if (/^mouseover$/.test(type)) evt.fromElement = relatedTarget;\r
-                       }\r
-                               \r
                } else if (document.createEventObject) {\r
                        evt = document.createEventObject();\r
                        $.extend(evt, e);\r