]> source.dussan.org Git - jquery-ui.git/commitdiff
Popup: Use duration:fast for default animations. Also fix two missing semicolons.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 21 Sep 2011 20:48:55 +0000 (22:48 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 21 Sep 2011 20:48:55 +0000 (22:48 +0200)
ui/jquery.ui.popup.js

index 487a53eead65aaba90e01072cdb002cc6bb928ea..4ef1e2c29f19d73082a2031e2b0c23b456468d55 100644 (file)
@@ -23,8 +23,14 @@ $.widget( "ui.popup", {
                        my: "left top",
                        at: "left bottom"
                },
-               show: "slideDown",
-               hide: "fadeOut"
+               show: {
+                       effect: "slideDown",
+                       duration: "fast"
+               },
+               hide: {
+                       effect: "fadeOut",
+                       duration: "fast"
+               }
        },
        _create: function() {
                if ( !this.options.trigger ) {
@@ -47,7 +53,7 @@ $.widget( "ui.popup", {
                        .attr( "aria-owns", this.element.attr( "id" ) );
 
                this.element
-                       .addClass( "ui-popup" )
+                       .addClass( "ui-popup" );
                this._beforeClose();
                this.element.hide();
 
@@ -134,7 +140,7 @@ $.widget( "ui.popup", {
                                        this.close( event );
                                }
                        }
-               })
+               });
        },
 
        _destroy: function() {
@@ -203,7 +209,7 @@ $.widget( "ui.popup", {
                this.isOpen = false;
                this._trigger( "close", event );
        },
-       
+
        _beforeClose: function() {
                this.element
                        .attr( "aria-hidden", "true" )