Skip to content
Browse files

Making sure originalTarget gets copied over from the original event o…

…bject
  • Loading branch information...
1 parent 5311565 commit 4b970deacd80ddbcb909c42c41d5a566ad8f3e9f @brandonaaron brandonaaron committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
View
2 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] ];

0 comments on commit 4b970de

Please sign in to comment.
Something went wrong with that request. Please try again.