mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
removed setting toElement/fromEelement as this is handled by the browser
This commit is contained in:
parent
c97a452cca
commit
e1c8b08736
@ -62,13 +62,6 @@ $.extend($.simulate.prototype, {
|
||||
e.screenX, e.screenY, e.clientX, e.clientY,
|
||||
e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,
|
||||
e.button, relatedTarget);
|
||||
|
||||
// check to see if relatedTarget has been assigned
|
||||
if (relatedTarget && !evt.relatedTarget) {
|
||||
if (/^mouseout$/.test(type)) evt.toElement = relatedTarget;
|
||||
else if (/^mouseover$/.test(type)) evt.fromElement = relatedTarget;
|
||||
}
|
||||
|
||||
} else if (document.createEventObject) {
|
||||
evt = document.createEventObject();
|
||||
$.extend(evt, e);
|
||||
|
Loading…
Reference in New Issue
Block a user