Skip to content

Commit cd5c736

Browse files
committed
Tooltip: Add support for setOption with classes
1 parent a83fd54 commit cd5c736

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ui/tooltip.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ $.widget( "ui.tooltip", {
108108
.appendTo( this.document[ 0 ].body );
109109
},
110110

111+
_elementsFromClassKey: function( classKey ) {
112+
switch( classKey ) {
113+
case "ui-tooltip":
114+
return this.element.find( "ui-tooltip" );
115+
case "ui-tooltip-title":
116+
return this.element.find( "ui-tooltip-title" );
117+
default:
118+
return this._superApply( arguments );
119+
}
120+
},
121+
111122
_setOption: function( key, value ) {
112123
var that = this;
113124

0 commit comments

Comments
 (0)