From ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Fri, 30 Jul 2010 14:26:58 +0200 Subject: Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack --- ui/jquery.ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.dialog.js') diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index df11e2190..0122ce905 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -207,7 +207,7 @@ $.widget("ui.dialog", { }, widget: function() { - return this.uiDialog; + return this.element.pushStack(this.uiDialog.get()); }, close: function(event) { -- cgit v1.2.3