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.autocomplete.js | 2 +- ui/jquery.ui.button.js | 2 +- ui/jquery.ui.dialog.js | 2 +- ui/jquery.ui.widget.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 855037824..e93818d53 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -311,7 +311,7 @@ $.widget( "ui.autocomplete", { }, widget: function() { - return this.menu.element; + return this.element.pushStack(this.menu.element.get()); } }); diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index b2fab4d24..54e099a0a 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -210,7 +210,7 @@ $.widget( "ui.button", { }, widget: function() { - return this.buttonElement; + return this.element.pushStack(this.buttonElement.get()); }, destroy: function() { 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) { diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index e21287ae0..b5e10ba0f 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -160,7 +160,7 @@ $.Widget.prototype = { }, widget: function() { - return this.element; + return this.element.pushStack(this.element.get()); }, option: function( key, value ) { -- cgit v1.2.3