From: Sean Catchpole Date: Wed, 12 Sep 2007 21:04:10 +0000 (+0000) Subject: Animate should absolutely position if a number is passed (Ex: -700) X-Git-Tag: 1.2.1~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e4a62e4ec60a1dc36274e5706b46faadf455bd16;p=jquery.git Animate should absolutely position if a number is passed (Ex: -700) --- diff --git a/src/fx.js b/src/fx.js index 1028610e2..495fe17d3 100644 --- a/src/fx.js +++ b/src/fx.js @@ -111,7 +111,7 @@ jQuery.fn.extend({ } // If a +/- token was provided, we're doing a relative animation - if ( parts[1] ) + if ( parts[1] && typeof val != "number" ) end = ((parts[1] == "-" ? -1 : 1) * end) + start; e.custom( start, end, unit );