mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack
This commit is contained in:
2
ui/jquery.ui.autocomplete.js
vendored
2
ui/jquery.ui.autocomplete.js
vendored
@@ -311,7 +311,7 @@ $.widget( "ui.autocomplete", {
|
||||
},
|
||||
|
||||
widget: function() {
|
||||
return this.menu.element;
|
||||
return this.element.pushStack(this.menu.element.get());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@@ -210,7 +210,7 @@ $.widget( "ui.button", {
|
||||
},
|
||||
|
||||
widget: function() {
|
||||
return this.buttonElement;
|
||||
return this.element.pushStack(this.buttonElement.get());
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
|
||||
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@@ -207,7 +207,7 @@ $.widget("ui.dialog", {
|
||||
},
|
||||
|
||||
widget: function() {
|
||||
return this.uiDialog;
|
||||
return this.element.pushStack(this.uiDialog.get());
|
||||
},
|
||||
|
||||
close: function(event) {
|
||||
|
||||
2
ui/jquery.ui.widget.js
vendored
2
ui/jquery.ui.widget.js
vendored
@@ -160,7 +160,7 @@ $.Widget.prototype = {
|
||||
},
|
||||
|
||||
widget: function() {
|
||||
return this.element;
|
||||
return this.element.pushStack(this.element.get());
|
||||
},
|
||||
|
||||
option: function( key, value ) {
|
||||
|
||||
Reference in New Issue
Block a user