From: John Resig Date: Mon, 11 Oct 2010 20:44:12 +0000 (-0400) Subject: Merge branch 'animateHooks' of http://github.com/lrbabe/jquery into lrbabe-animateHooks X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=d23f63b13ea47ac3e91906e5ac1e2503400cd903;hp=5f30ae3b6fa89c3cc00c8c67305c84f21f76aa68;p=jquery.git Merge branch 'animateHooks' of github.com/lrbabe/jquery into lrbabe-animateHooks --- diff --git a/src/effects.js b/src/effects.js index 8662df5..7d2cd8f 100644 --- a/src/effects.js +++ b/src/effects.js @@ -182,9 +182,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