Skip to content
Permalink
Browse files

Absolutely position animations, damn my twichy fingers for commiting …

…too soon.
  • Loading branch information
Sean Catchpole
Sean Catchpole committed Sep 12, 2007
1 parent e4a62e4 commit 8ece9e8fb1278e4e62aeb8896979b2a6815dcb3e
Showing with 4 additions and 1 deletion.
  1. +4 −1 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, "" );

0 comments on commit 8ece9e8

Please sign in to comment.
You can’t perform that action at this time.