From f6a2e1734f73e30386e2679d4f4a8e5ac9a46f88 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 15 Sep 2007 03:26:33 +0000 Subject: [PATCH] Fixed animating to 0% (Bug #1586). --- src/fx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fx.js b/src/fx.js index d75f3d0b0..a143df683 100644 --- a/src/fx.js +++ b/src/fx.js @@ -105,8 +105,8 @@ jQuery.fn.extend({ // We need to compute starting value if ( unit != "px" ) { - self.style[ name ] = end + unit; - start = (end / e.cur(true)) * start; + self.style[ name ] = (end || 1) + unit; + start = ((end || 1) / e.cur(true)) * start; self.style[ name ] = start + unit; } -- 2.39.5