Fixed animating to 0% (Bug #1586).

This commit is contained in:
John Resig 2007-09-15 03:26:33 +00:00
parent dbca9cbf62
commit f6a2e1734f

View file

@ -105,8 +105,8 @@ jQuery.fn.extend({
// We need to compute starting value
if ( unit != "px" ) {
self.style[ name ] = end + unit;
start = (end / e.cur(true)) * start;
self.style[ name ] = (end || 1) + unit;
start = ((end || 1) / e.cur(true)) * start;
self.style[ name ] = start + unit;
}