From: John Resig Date: Wed, 22 Aug 2007 04:52:53 +0000 (+0000) Subject: Added fix for undefined property in animation, in IE (Bug #1518) X-Git-Tag: 1.1.4~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e06b7447c2e8887549338b3b5f4fa9ed65fe9dcd;p=jquery.git Added fix for undefined property in animation, in IE (Bug #1518) --- diff --git a/src/fx/fx.js b/src/fx/fx.js index 9f767a9f4..ca861b6bd 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -336,7 +336,7 @@ jQuery.fn.extend({ jQuery.each( prop, function(name, val){ var e = new jQuery.fx( self, opt, name ); if ( val.constructor == Number ) - e.custom( e.cur(), val ); + e.custom( e.cur() || 0, val ); else e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop ); });