Skip to content

Commit

Permalink
Absolutely position animations, damn my twichy fingers for commiting …
Browse files Browse the repository at this point in the history
…too soon.
  • Loading branch information
Sean Catchpole committed Sep 12, 2007
1 parent e4a62e4 commit 8ece9e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, "" );
Expand Down

0 comments on commit 8ece9e8

Please sign in to comment.