Commit e4a62e4e authored by Sean Catchpole's avatar Sean Catchpole

Animate should absolutely position if a number is passed (Ex: -700)

parent e22336e7
...@@ -111,7 +111,7 @@ jQuery.fn.extend({ ...@@ -111,7 +111,7 @@ jQuery.fn.extend({
} }
// If a +/- token was provided, we're doing a relative animation // If a +/- token was provided, we're doing a relative animation
if ( parts[1] ) if ( parts[1] && typeof val != "number" )
end = ((parts[1] == "-" ? -1 : 1) * end) + start; end = ((parts[1] == "-" ? -1 : 1) * end) + start;
e.custom( start, end, unit ); e.custom( start, end, unit );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment