diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-30 14:26:58 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-30 14:26:58 +0200 |
commit | ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d (patch) | |
tree | 35cff2c8f0505cf9b5430b33df0ff7ab5c85dc59 /ui | |
parent | b3940d2f78dfcc37792ceb97e5659b78f156794c (diff) | |
download | jquery-ui-ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d.tar.gz jquery-ui-ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d.zip |
Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 | ||||
-rw-r--r-- | ui/jquery.ui.button.js | 2 | ||||
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 | ||||
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
4 files changed, 4 insertions, 4 deletions
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 ) { |