aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-03 05:55:13 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-03 05:55:13 +0000
commit913d6fd35a89e2660d967f8b86da6d62a119ea3e (patch)
tree741e04bf4dae98f6697f7e07754fb9b615f508f5
parentbb3328dafd6b5d8f08fd53a817f4c6858fa63385 (diff)
downloadjquery-ui-913d6fd35a89e2660d967f8b86da6d62a119ea3e.tar.gz
jquery-ui-913d6fd35a89e2660d967f8b86da6d62a119ea3e.zip
Dialog: Fixed #3753: Cleaned ui hash in callbacks.
-rw-r--r--ui/ui.dialog.js10
1 files 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;
},