From 913d6fd35a89e2660d967f8b86da6d62a119ea3e Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 3 Jan 2009 05:55:13 +0000 Subject: Dialog: Fixed #3753: Cleaned ui hash in callbacks. --- ui/ui.dialog.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index b7fee7e7e..8b68dc4d5 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -161,7 +161,7 @@ $.widget("ui.dialog", { }, close: function() { - if (false === this._trigger('beforeclose', null, { options: this.options })) { + if (false === this._trigger('beforeclose')) { return; } @@ -170,7 +170,7 @@ $.widget("ui.dialog", { .hide(this.options.hide) .unbind('keypress.ui-dialog'); - this._trigger('close', null, { options: this.options }); + this._trigger('close'); $.ui.dialog.overlay.resize(); this._isOpen = false; @@ -186,7 +186,7 @@ $.widget("ui.dialog", { if ((this.options.modal && !force) || (!this.options.stack && !this.options.modal)) { - return this._trigger('focus', null, { options: this.options }); + return this._trigger('focus'); } var maxZ = this.options.zIndex, options = this.options; @@ -200,7 +200,7 @@ $.widget("ui.dialog", { var saveScroll = { scrollTop: this.element.attr('scrollTop'), scrollLeft: this.element.attr('scrollLeft') }; this.uiDialog.css('z-index', ++maxZ); this.element.attr(saveScroll); - this._trigger('focus', null, { options: this.options }); + this._trigger('focus'); }, open: function() { @@ -235,7 +235,7 @@ $.widget("ui.dialog", { })); this.uiDialog.find(':tabbable:first').focus(); - this._trigger('open', null, { options: this.options }); + this._trigger('open'); this._isOpen = true; }, -- cgit v1.2.3