]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Remove animation stopping in destroy
authorScott González <scott.gonzalez@gmail.com>
Tue, 10 Mar 2015 19:40:49 +0000 (15:40 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 11 Mar 2015 12:42:12 +0000 (08:42 -0400)
Effects wrappers are no longer used, so the workaround and test are no
longer necessary.

This fixes tests in IE8 with jQuery 1.7.

Effectively a complete revert of 13505e5945e5532c3d56424d50ad109c665d205f

Closes gh-1481

tests/unit/dialog/dialog.html
tests/unit/dialog/dialog_options.js
ui/dialog.js

index 6f39f7b8afd00410f5dc588f7b98b69a424aee2f..55da8c8f591a3d0b34d868ac7b91984fbc9ea6ab 100644 (file)
@@ -22,7 +22,6 @@
                        "ui/button.js",
                        "ui/effect.js",
                        "ui/effect-blind.js",
-                       "ui/effect-clip.js",
                        "ui/effect-explode.js",
                        "ui/dialog.js"
                ]
index 3e5444c67e21de11666bf377a64c6d9e1672cf5f..6bab426fbbecdf0005cdee099964c48a5d253457 100644 (file)
@@ -283,15 +283,6 @@ test("height", function() {
        element.remove();
 });
 
-asyncTest( "hide, #5860 - don't leave effects wrapper behind", function() {
-       expect( 1 );
-       $( "#dialog1" ).dialog({ hide: "clip" }).dialog( "close" ).dialog( "destroy" );
-       setTimeout(function() {
-               equal( $( ".ui-effects-wrapper" ).length, 0 );
-               start();
-       }, 500);
-});
-
 test("maxHeight", function() {
        expect(3);
 
index 0775fbe8df9d4e0f624f08904d7e7285b06f833c..166f68b0f44b3667d51264eccc03af5ee6ebea2c 100644 (file)
@@ -168,7 +168,7 @@ return $.widget( "ui.dialog", {
                        // Without detaching first, the following becomes really slow
                        .detach();
 
-               this.uiDialog.stop( true, true ).remove();
+               this.uiDialog.remove();
 
                if ( this.originalTitle ) {
                        this.element.attr( "title", this.originalTitle );