Fixed the giant negative number issue that Opera was having.

This commit is contained in:
John Resig 2006-08-24 23:45:39 +00:00
parent 23e255015f
commit 7caca06cfc

View File

@ -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