Effects: Fixing bug in blind effect caused by 48659c64 - auto doesn't parse

This commit is contained in:
Corey Frang
2012-07-20 18:35:32 -05:00
parent 4e3d31e1ee
commit 85d259483e

View File

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