From 8ece9e8fb1278e4e62aeb8896979b2a6815dcb3e Mon Sep 17 00:00:00 2001 From: Sean Catchpole Date: Wed, 12 Sep 2007 22:16:43 +0000 Subject: [PATCH] Absolutely position animations, damn my twichy fingers for commiting too soon. --- src/fx.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fx.js b/src/fx.js index 495fe17..87af7e0 100644 --- a/src/fx.js +++ b/src/fx.js @@ -111,9 +111,12 @@ jQuery.fn.extend({ } // If a +/- token was provided, we're doing a relative animation - if ( parts[1] && typeof val != "number" ) + if ( parts[1] ) end = ((parts[1] == "-" ? -1 : 1) * end) + start; + // Absolutely position numbers + if( typeof val == "number") end = val; + e.custom( start, end, unit ); } else e.custom( start, val, "" ); -- 1.7.10.4