aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-30 12:38:18 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-30 12:38:18 -0400
commit58ae7ce2fd20fb865c9087fb2eae0dbdb39fc9a7 (patch)
treeedba4fc37f64d163273c41d4a166cb25a6e9243a /ui
parentdffcba0ba6d77413f700fba46e4ed5eabe74359f (diff)
downloadjquery-ui-58ae7ce2fd20fb865c9087fb2eae0dbdb39fc9a7.tar.gz
jquery-ui-58ae7ce2fd20fb865c9087fb2eae0dbdb39fc9a7.zip
Revert "Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack"
This reverts commit ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.autocomplete.js2
-rw-r--r--ui/jquery.ui.button.js2
-rw-r--r--ui/jquery.ui.dialog.js2
-rw-r--r--ui/jquery.ui.widget.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index e93818d53..855037824 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -311,7 +311,7 @@ $.widget( "ui.autocomplete", {
},
widget: function() {
- return this.element.pushStack(this.menu.element.get());
+ return this.menu.element;
}
});
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 54e099a0a..b2fab4d24 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -210,7 +210,7 @@ $.widget( "ui.button", {
},
widget: function() {
- return this.element.pushStack(this.buttonElement.get());
+ return this.buttonElement;
},
destroy: function() {
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 0122ce905..df11e2190 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -207,7 +207,7 @@ $.widget("ui.dialog", {
},
widget: function() {
- return this.element.pushStack(this.uiDialog.get());
+ return this.uiDialog;
},
close: function(event) {
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index b5e10ba0f..e21287ae0 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -160,7 +160,7 @@ $.Widget.prototype = {
},
widget: function() {
- return this.element.pushStack(this.element.get());
+ return this.element;
},
option: function( key, value ) {