Skip to content

Commit dcbd427

Browse files
committed
Dialog: Removed $.ui.dialog.topMostDialog - added for performance improvement, but not needed and could cause problems.
1 parent 3c7e1b3 commit dcbd427

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/ui.dialog.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,14 @@ $.widget("ui.dialog", {
177177
// position on open
178178
moveToTop: function(force, event) {
179179

180-
if ($.ui.dialog.topMostDialog == this
181-
|| (this.options.modal && !force)
180+
if ((this.options.modal && !force)
182181
|| (!this.options.stack && !this.options.modal)) {
183182
return this._trigger('focus', event);
184183
}
185184

186185
if (this.options.zIndex > $.ui.dialog.maxZ) {
187186
$.ui.dialog.maxZ = this.options.zIndex;
188187
}
189-
$.ui.dialog.topMostDialog = this;
190188
(this.overlay && this.overlay.$el.css('z-index', $.ui.dialog.overlay.maxZ = ++$.ui.dialog.maxZ));
191189

192190
//Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed.
@@ -503,7 +501,6 @@ $.extend($.ui.dialog, {
503501

504502
uuid: 0,
505503
maxZ: 0,
506-
topMostDialog: null,
507504

508505
getTitleId: function($el) {
509506
return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid);

0 commit comments

Comments
 (0)