Skip to content
Permalink
Browse files

Make $.fn.animate compatible with jQuery.cssHooks

  • Loading branch information...
lrbabe
lrbabe committed Oct 11, 2010
1 parent 2866f16 commit aa9e4db1ab5cd6f514de616070829d64d69a3428
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit aa9e4db

Please sign in to comment.
You can’t perform that action at this time.