From: Brandon Aaron Date: Wed, 7 May 2008 13:21:16 +0000 (+0000) Subject: Making sure originalTarget gets copied over from the original event object X-Git-Tag: 1.2.4b~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b970deacd80ddbcb909c42c41d5a566ad8f3e9f;p=jquery.git Making sure originalTarget gets copied over from the original event object --- diff --git a/src/event.js b/src/event.js index 8e5208149..603cdb9d5 100644 --- a/src/event.js +++ b/src/event.js @@ -284,7 +284,7 @@ jQuery.event = { // and "clone" to set read-only properties var originalEvent = event; event = { originalEvent: originalEvent }; - var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" "); + var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" "); for ( var i=props.length; i; i-- ) event[ props[i] ] = originalEvent[ props[i] ];