]> source.dussan.org Git - jquery.git/commitdiff
Absolutely position animations, damn my twichy fingers for commiting too soon.
authorSean Catchpole <littlecooldude@gmail.com>
Wed, 12 Sep 2007 22:16:43 +0000 (22:16 +0000)
committerSean Catchpole <littlecooldude@gmail.com>
Wed, 12 Sep 2007 22:16:43 +0000 (22:16 +0000)
src/fx.js

index 495fe17d33587700a79aa36337537814bc3ab393..87af7e0cb08c26f927c2ff552bfe0497def852a1 100644 (file)
--- 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, "" );