Commit f6a2e173 authored by John Resig's avatar John Resig

Fixed animating to 0% (Bug #1586).

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