From: Corey Frang Date: Fri, 20 Jul 2012 23:35:32 +0000 (-0500) Subject: Effects: Fixing bug in blind effect caused by 48659c64 - auto doesn't parse X-Git-Tag: 1.9.0-rc.1~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=85d259483ebf9a9fddc3c3fb6b191f10d181a1ad;p=jquery-ui.git Effects: Fixing bug in blind effect caused by 48659c64 - auto doesn't parse --- diff --git a/ui/jquery.ui.effect-blind.js b/ui/jquery.ui.effect-blind.js index 7cc353525..a5c41325c 100644 --- a/ui/jquery.ui.effect-blind.js +++ b/ui/jquery.ui.effect-blind.js @@ -42,7 +42,7 @@ $.effects.effect.blind = function( o, done ) { }); distance = wrapper[ ref ](); - margin = parseFloat( wrapper.css( ref2 ) ); + margin = parseFloat( wrapper.css( ref2 ) ) || 0; animation[ ref ] = show ? distance : 0; if ( !motion ) { @@ -51,7 +51,7 @@ $.effects.effect.blind = function( o, done ) { .css( vertical ? "top" : "left", "auto" ) .css({ position: "absolute" }); - animation[ ref2 ] = show ? margin : distance + margin; + animation[ ref2 ] = show ? margin : distance + margin; } // start at 0 if we are showing