]> source.dussan.org Git - jquery.git/commitdiff
Forgot the 'var' statement, causing variables to leak. (Bug #1592)
authorJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 03:12:56 +0000 (03:12 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 03:12:56 +0000 (03:12 +0000)
src/fx.js

index d5122f1b8ac46a05485db9d1982461414de83bca..d75f3d0b0c6d15449b2d4e2870da5e609b542340 100644 (file)
--- a/src/fx.js
+++ b/src/fx.js
@@ -100,8 +100,8 @@ jQuery.fn.extend({
                                                start = e.cur(true) || 0;
 
                                        if ( parts ) {
-                                               end = parseFloat(parts[2]),
-                                               unit = parts[3] || "px";
+                                               var end = parseFloat(parts[2]),
+                                                       unit = parts[3] || "px";
 
                                                // We need to compute starting value
                                                if ( unit != "px" ) {