mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 11:07:58 -05:00
Absolutely position animations, damn my twichy fingers for commiting too soon.
This commit is contained in:
@@ -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, "" );
|
||||
|
||||
Reference in New Issue
Block a user