Skip to content
Permalink
Browse files

Use pushStack in tooltip's widget method. See #5732

  • Loading branch information...
jzaefferer committed Jul 30, 2010
1 parent 52c3165 commit 96977edecc134d9212a304a1236e823237e8e274
Showing with 8 additions and 1 deletion.
  1. +7 −0 tests/unit/tooltip/tooltip_methods.js
  2. +1 −1 ui/jquery.ui.tooltip.js
@@ -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);
@@ -70,7 +70,7 @@ $.widget("ui.tooltip", {
},

widget: function() {
return this.tooltip;
return this.element.pushStack(this.tooltip.get());
},

open: function(event) {

0 comments on commit 96977ed

Please sign in to comment.
You can’t perform that action at this time.