]> source.dussan.org Git - jquery.git/commitdiff
Make $.fn.animate compatible with jQuery.cssHooks 44/head
authorlrbabe <lrbabe@lrbabe-laptop.(none)>
Mon, 11 Oct 2010 14:08:38 +0000 (16:08 +0200)
committerlrbabe <lrbabe@lrbabe-laptop.(none)>
Mon, 11 Oct 2010 14:08:38 +0000 (16:08 +0200)
src/effects.js

index 241dbd03687afe9bd419b910b0e90bbf487fba2e..8c0985b63ccb3c0998d69932997de04575c307ec 100644 (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