removed setting toElement/fromEelement as this is handled by the browser

This commit is contained in:
Richard Worth 2008-06-05 11:59:32 +00:00
parent c97a452cca
commit e1c8b08736

View File

@ -62,13 +62,6 @@ $.extend($.simulate.prototype, {
e.screenX, e.screenY, e.clientX, e.clientY, e.screenX, e.screenY, e.clientX, e.clientY,
e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,
e.button, relatedTarget); 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) { } else if (document.createEventObject) {
evt = document.createEventObject(); evt = document.createEventObject();
$.extend(evt, e); $.extend(evt, e);