From aa9e4db1ab5cd6f514de616070829d64d69a3428 Mon Sep 17 00:00:00 2001 From: lrbabe Date: Mon, 11 Oct 2010 16:08:38 +0200 Subject: [PATCH] Make $.fn.animate compatible with jQuery.cssHooks --- src/effects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects.js b/src/effects.js index 241dbd036..8c0985b63 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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 -- 2.39.5