]> source.dussan.org Git - jquery-ui.git/commitdiff
effects.blind: Save the wrapper status if already wrapped. Fixes #6245 - position...
authortomykaira <tomykaira@gmail.com>
Wed, 25 May 2011 19:52:53 +0000 (15:52 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 25 May 2011 19:52:53 +0000 (15:52 -0400)
ui/jquery.effects.blind.js

index 7a59d8a75f57a2466b7df9f593c2a6ecdc35ca51..8ef544faa6d8392d16a141757a4454b446bed083 100644 (file)
@@ -31,7 +31,12 @@ $.effects.effect.blind = function( o ) {
                        animation = {},
                        wrapper, distance;
 
-               $.effects.save( el, props ); 
+               // if already wrapped, the wrapper's properties are my property. #6245
+               if ( el.parent().is( ".ui-effects-wrapper" ) ) {
+                       $.effects.save( el.parent(), props );
+               } else {
+                       $.effects.save( el, props );
+               }
                el.show(); 
                wrapper = $.effects.createWrapper( el ).css({ 
                        overflow: "hidden"