diff options
author | timmywil <timmywillisn@gmail.com> | 2011-10-07 11:45:42 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-10-07 11:45:42 -0400 |
commit | e828d18caa31822a27f4365b123405394ef4577d (patch) | |
tree | 595295f21c90d72ecd1734f661e4e271b9e344ee | |
parent | cec0d0d421063924cf0326db380b0d5a08675968 (diff) | |
download | jquery-e828d18caa31822a27f4365b123405394ef4577d.tar.gz jquery-e828d18caa31822a27f4365b123405394ef4577d.zip |
Minor fix in events; undeclared var from last commit
-rw-r--r-- | src/event.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.js b/src/event.js index 64fa598c0..4317b7ac7 100644 --- a/src/event.js +++ b/src/event.js @@ -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 ]; } |