Skip to content

Commit

Permalink
Fixed the giant negative number issue that Opera was having.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Aug 24, 2006
1 parent 23e2550 commit 7caca06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fx/fx.js
Expand Up @@ -415,7 +415,8 @@ jQuery.extend({

// Get the current size
z.cur = function(){
return parseFloat( jQuery.curCSS(z.el, prop) ) || z.max();
var r = parseFloat( jQuery.curCSS(z.el, prop) );
return r && r > -10000 ? r : z.max();
};

// Start an animation from one number to another
Expand Down

0 comments on commit 7caca06

Please sign in to comment.