aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.effect-blind.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-07-20 18:35:32 -0500
committerCorey Frang <gnarf@gnarf.net>2012-07-20 18:35:32 -0500
commit85d259483ebf9a9fddc3c3fb6b191f10d181a1ad (patch)
treeb2fa8114763feb5e1c9179ca437bd39af0919900 /ui/jquery.ui.effect-blind.js
parent4e3d31e1eeabaf311552b8496936122dae88b69f (diff)
downloadjquery-ui-85d259483ebf9a9fddc3c3fb6b191f10d181a1ad.tar.gz
jquery-ui-85d259483ebf9a9fddc3c3fb6b191f10d181a1ad.zip
Effects: Fixing bug in blind effect caused by 48659c64 - auto doesn't parse
Diffstat (limited to 'ui/jquery.ui.effect-blind.js')
-rw-r--r--ui/jquery.ui.effect-blind.js4
1 files changed, 2 insertions, 2 deletions
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