Skip to content

Commit 2f32848

Browse files
committed
Tooltip: Proper handled of disabled option.
1 parent 73c6f34 commit 2f32848

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ $.widget( "ui.tooltip", {
3636
});
3737
},
3838

39-
enable: function() {
40-
this.options.disabled = false;
41-
},
42-
43-
disable: function() {
39+
_setOption: function( key, value ) {
4440
// only set option, disable element style changes
45-
this.options.disabled = true;
41+
if ( key === "disabled" ) {
42+
this.options[ key ] = value;
43+
return;
44+
}
45+
this._super( "_setOption", key, value );
4646
},
4747

4848
open: function( event ) {

0 commit comments

Comments
 (0)