Skip to content

Commit

Permalink
Tooltip: Proper handled of disabled option.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed May 28, 2011
1 parent 73c6f34 commit 2f32848
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/jquery.ui.tooltip.js
Expand Up @@ -36,13 +36,13 @@ $.widget( "ui.tooltip", {
});
},

enable: function() {
this.options.disabled = false;
},

disable: function() {
_setOption: function( key, value ) {
// only set option, disable element style changes
this.options.disabled = true;
if ( key === "disabled" ) {
this.options[ key ] = value;
return;
}
this._super( "_setOption", key, value );
},

open: function( event ) {
Expand Down

1 comment on commit 2f32848

@jzaefferer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Cool commit message, bro!

Please sign in to comment.