Commit aa9e4db1 authored by lrbabe's avatar lrbabe

Make $.fn.animate compatible with jQuery.cssHooks

parent 2866f16c
...@@ -181,9 +181,9 @@ jQuery.fn.extend({ ...@@ -181,9 +181,9 @@ 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 || 1) + unit; jQuery.style( self, name, (end || 1) + unit);
start = ((end || 1) / e.cur(true)) * start; start = ((end || 1) / e.cur(true)) * start;
self.style[ name ] = start + unit; jQuery.style( self, name, start + unit);
} }
// If a +=/-= token was provided, we're doing a relative animation // If a +=/-= token was provided, we're doing a relative animation
......
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