Permalink
Browse files

Minor fix in events; undeclared var from last commit

  • Loading branch information...
1 parent cec0d0d commit e828d18caa31822a27f4365b123405394ef4577d timmywil committed Oct 7, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/event.js
View
@@ -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 ];
}

0 comments on commit e828d18

Please sign in to comment.