diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-19 02:35:19 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-19 02:35:19 +0000 |
commit | dcbd427cdf20dfcf847d9daa22b591fac6893330 (patch) | |
tree | 0a94120ef9a6825e9a72d7c95c03258819b93339 /ui | |
parent | 3c7e1b3ff95270d539395ebab498afa8d102e799 (diff) | |
download | jquery-ui-dcbd427cdf20dfcf847d9daa22b591fac6893330.tar.gz jquery-ui-dcbd427cdf20dfcf847d9daa22b591fac6893330.zip |
Dialog: Removed $.ui.dialog.topMostDialog - added for performance improvement, but not needed and could cause problems.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.dialog.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 6518900f1..18f4bb6b7 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -177,8 +177,7 @@ $.widget("ui.dialog", { // position on open moveToTop: function(force, event) { - if ($.ui.dialog.topMostDialog == this - || (this.options.modal && !force) + if ((this.options.modal && !force) || (!this.options.stack && !this.options.modal)) { return this._trigger('focus', event); } @@ -186,7 +185,6 @@ $.widget("ui.dialog", { if (this.options.zIndex > $.ui.dialog.maxZ) { $.ui.dialog.maxZ = this.options.zIndex; } - $.ui.dialog.topMostDialog = this; (this.overlay && this.overlay.$el.css('z-index', $.ui.dialog.overlay.maxZ = ++$.ui.dialog.maxZ)); //Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed. @@ -503,7 +501,6 @@ $.extend($.ui.dialog, { uuid: 0, maxZ: 0, - topMostDialog: null, getTitleId: function($el) { return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid); |