aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorSean Catchpole <littlecooldude@gmail.com>2007-09-12 22:16:43 +0000
committerSean Catchpole <littlecooldude@gmail.com>2007-09-12 22:16:43 +0000
commit8ece9e8fb1278e4e62aeb8896979b2a6815dcb3e (patch)
tree5ad65b348c8b2bec903f7f9d25403824eb303112 /src/fx.js
parente4a62e4ec60a1dc36274e5706b46faadf455bd16 (diff)
downloadjquery-8ece9e8fb1278e4e62aeb8896979b2a6815dcb3e.tar.gz
jquery-8ece9e8fb1278e4e62aeb8896979b2a6815dcb3e.zip
Absolutely position animations, damn my twichy fingers for commiting too soon.
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index 495fe17d3..87af7e0cb 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, "" );