aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-21 22:48:55 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-21 22:48:55 +0200
commita3866bf057a8ef1d72f07de6fc12c2d9e4e4bb6f (patch)
treebd53aa5223ee5f8ce2a8de1997591ff86134970f
parent2196b74a3126dc2dedd4e91727dbc75c41dc45f5 (diff)
downloadjquery-ui-a3866bf057a8ef1d72f07de6fc12c2d9e4e4bb6f.tar.gz
jquery-ui-a3866bf057a8ef1d72f07de6fc12c2d9e4e4bb6f.zip
Popup: Use duration:fast for default animations. Also fix two missing semicolons.
-rw-r--r--ui/jquery.ui.popup.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/ui/jquery.ui.popup.js b/ui/jquery.ui.popup.js
index 487a53eea..4ef1e2c29 100644
--- a/ui/jquery.ui.popup.js
+++ b/ui/jquery.ui.popup.js
@@ -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" )