We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec0d0d commit e828d18Copy full SHA for e828d18
src/event.js
@@ -528,14 +528,14 @@ jQuery.event = {
528
}
529
530
// Create a writable copy of the event object and normalize some properties
531
- var originalEvent = event,
+ var i, prop,
532
+ originalEvent = event,
533
fixHook = jQuery.event.fixHooks[ event.type ] || {},
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props,
534
- i;
+ copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
535
536
event = jQuery.Event( originalEvent );
537
538
- for ( i = copy.length, prop; i; ) {
+ for ( i = copy.length; i; ) {
539
prop = copy[ --i ];
540
event[ prop ] = originalEvent[ prop ];
541
0 commit comments