diff options
Diffstat (limited to 'ui/jquery.ui.effect-blind.js')
-rw-r--r-- | ui/jquery.ui.effect-blind.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.effect-blind.js b/ui/jquery.ui.effect-blind.js index 7cc353525..c4ff12fdc 100644 --- a/ui/jquery.ui.effect-blind.js +++ b/ui/jquery.ui.effect-blind.js @@ -3,7 +3,7 @@ * http://jqueryui.com * * Copyright 2012 jQuery Foundation and other contributors - * Dual licensed under the MIT or GPL Version 2 licenses. + * Released under the MIT license. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Blind @@ -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 |