Added fix for undefined property in animation, in IE (Bug #1518)

This commit is contained in:
John Resig 2007-08-22 04:52:53 +00:00
parent b99fd476d0
commit e06b7447c2

View file

@ -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 );
});