Skip to content

Commit

Permalink
Make $.fn.animate compatible with jQuery.cssHooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lrbabe committed Oct 11, 2010
1 parent 2866f16 commit aa9e4db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/effects.js
Expand Up @@ -181,9 +181,9 @@ jQuery.fn.extend({


// We need to compute starting value // We need to compute starting value
if ( unit !== "px" ) { if ( unit !== "px" ) {
self.style[ name ] = (end || 1) + unit; jQuery.style( self, name, (end || 1) + unit);
start = ((end || 1) / e.cur(true)) * start; 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 // If a +=/-= token was provided, we're doing a relative animation
Expand Down

0 comments on commit aa9e4db

Please sign in to comment.