Skip to content

Commit 85d2594

Browse files
committed
Effects: Fixing bug in blind effect caused by 48659c6 - auto doesn't parse
1 parent 4e3d31e commit 85d2594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.effect-blind.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $.effects.effect.blind = function( o, done ) {
4242
});
4343

4444
distance = wrapper[ ref ]();
45-
margin = parseFloat( wrapper.css( ref2 ) );
45+
margin = parseFloat( wrapper.css( ref2 ) ) || 0;
4646

4747
animation[ ref ] = show ? distance : 0;
4848
if ( !motion ) {
@@ -51,7 +51,7 @@ $.effects.effect.blind = function( o, done ) {
5151
.css( vertical ? "top" : "left", "auto" )
5252
.css({ position: "absolute" });
5353

54-
animation[ ref2 ] = show ? margin : distance + margin;
54+
animation[ ref2 ] = show ? margin : distance + margin;
5555
}
5656

5757
// start at 0 if we are showing

0 commit comments

Comments
 (0)