From: Scott González Date: Sat, 28 May 2011 19:25:05 +0000 (-0400) Subject: Tooltip: Proper handled of disabled option. X-Git-Tag: 1.9m6~111^2~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f3284811c867408652bea044849085bda923b34;p=jquery-ui.git Tooltip: Proper handled of disabled option. --- diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 756fe0f7b..56e5fa5c2 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -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 ) {