Skip to content

Commit

Permalink
Minor fix in events; undeclared var from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Oct 7, 2011
1 parent cec0d0d commit e828d18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/event.js
Expand Up @@ -528,14 +528,14 @@ jQuery.event = {
}

// Create a writable copy of the event object and normalize some properties
var originalEvent = event,
var i, prop,
originalEvent = event,
fixHook = jQuery.event.fixHooks[ event.type ] || {},
copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props,
i;
copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;

event = jQuery.Event( originalEvent );

for ( i = copy.length, prop; i; ) {
for ( i = copy.length; i; ) {
prop = copy[ --i ];
event[ prop ] = originalEvent[ prop ];
}
Expand Down

0 comments on commit e828d18

Please sign in to comment.