]> source.dussan.org Git - jquery.git/commitdiff
Minor fix in events; undeclared var from last commit
authortimmywil <timmywillisn@gmail.com>
Fri, 7 Oct 2011 15:45:42 +0000 (11:45 -0400)
committertimmywil <timmywillisn@gmail.com>
Fri, 7 Oct 2011 15:45:42 +0000 (11:45 -0400)
src/event.js

index 64fa598c04de0f0d53a559e15ed00b3ea4327ede..4317b7ac71f5583180b3655f22ee4808de614d4b 100644 (file)
@@ -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 ];
                }