Forgot the 'var' statement, causing variables to leak. (Bug #1592)

This commit is contained in:
John Resig 2007-09-15 03:12:56 +00:00
parent 3dabd7ec30
commit dbca9cbf62

View File

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