mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Use pushStack in tooltip's widget method. See #5732
This commit is contained in:
parent
52c31650b0
commit
96977edecc
@ -20,4 +20,11 @@ test("open", function() {
|
||||
$(":ui-tooltip").tooltip("destroy");
|
||||
});
|
||||
|
||||
test("widget", function() {
|
||||
var tooltip = $("#tooltipped1").tooltip();
|
||||
same(tooltip.tooltip("widget")[0], $(".ui-tooltip")[0]);
|
||||
same(tooltip.tooltip("widget").end()[0], tooltip[0]);
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
2
ui/jquery.ui.tooltip.js
vendored
2
ui/jquery.ui.tooltip.js
vendored
@ -70,7 +70,7 @@ $.widget("ui.tooltip", {
|
||||
},
|
||||
|
||||
widget: function() {
|
||||
return this.tooltip;
|
||||
return this.element.pushStack(this.tooltip.get());
|
||||
},
|
||||
|
||||
open: function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user