From e06b7447c2e8887549338b3b5f4fa9ed65fe9dcd Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 22 Aug 2007 04:52:53 +0000 Subject: [PATCH] Added fix for undefined property in animation, in IE (Bug #1518) --- src/fx/fx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); });