mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Making sure originalTarget gets copied over from the original event object
This commit is contained in:
parent
5311565223
commit
4b970deacd
@ -284,7 +284,7 @@ jQuery.event = {
|
|||||||
// and "clone" to set read-only properties
|
// and "clone" to set read-only properties
|
||||||
var originalEvent = event;
|
var originalEvent = event;
|
||||||
event = { originalEvent: originalEvent };
|
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-- )
|
for ( var i=props.length; i; i-- )
|
||||||
event[ props[i] ] = originalEvent[ props[i] ];
|
event[ props[i] ] = originalEvent[ props[i] ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user