Make $.fn.animate compatible with jQuery.cssHooks

This commit is contained in:
lrbabe 2010-10-11 16:08:38 +02:00
parent 2866f16c09
commit aa9e4db1ab

4
src/effects.js vendored
View file

@ -181,9 +181,9 @@ jQuery.fn.extend({
// We need to compute starting value
if ( unit !== "px" ) {
self.style[ name ] = (end || 1) + unit;
jQuery.style( self, name, (end || 1) + unit);
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