Skip to content

Commit a3866bf

Browse files
committed
Popup: Use duration:fast for default animations. Also fix two missing semicolons.
1 parent 2196b74 commit a3866bf

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

ui/jquery.ui.popup.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ $.widget( "ui.popup", {
2323
my: "left top",
2424
at: "left bottom"
2525
},
26-
show: "slideDown",
27-
hide: "fadeOut"
26+
show: {
27+
effect: "slideDown",
28+
duration: "fast"
29+
},
30+
hide: {
31+
effect: "fadeOut",
32+
duration: "fast"
33+
}
2834
},
2935
_create: function() {
3036
if ( !this.options.trigger ) {
@@ -47,7 +53,7 @@ $.widget( "ui.popup", {
4753
.attr( "aria-owns", this.element.attr( "id" ) );
4854

4955
this.element
50-
.addClass( "ui-popup" )
56+
.addClass( "ui-popup" );
5157
this._beforeClose();
5258
this.element.hide();
5359

@@ -134,7 +140,7 @@ $.widget( "ui.popup", {
134140
this.close( event );
135141
}
136142
}
137-
})
143+
});
138144
},
139145

140146
_destroy: function() {
@@ -203,7 +209,7 @@ $.widget( "ui.popup", {
203209
this.isOpen = false;
204210
this._trigger( "close", event );
205211
},
206-
212+
207213
_beforeClose: function() {
208214
this.element
209215
.attr( "aria-hidden", "true" )

0 commit comments

Comments
 (0)