]> source.dussan.org Git - jquery.git/commitdiff
Animate should absolutely position if a number is passed (Ex: -700)
authorSean Catchpole <littlecooldude@gmail.com>
Wed, 12 Sep 2007 21:04:10 +0000 (21:04 +0000)
committerSean Catchpole <littlecooldude@gmail.com>
Wed, 12 Sep 2007 21:04:10 +0000 (21:04 +0000)
src/fx.js

index 1028610e28494aa2ed8c077e6416ced78220dc12..495fe17d33587700a79aa36337537814bc3ab393 100644 (file)
--- 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 );