diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-28 15:25:05 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-28 15:25:05 -0400 |
commit | 2f3284811c867408652bea044849085bda923b34 (patch) | |
tree | ab8f78133cdfefc80cb8fa77c9e639a077a4f6f9 /ui | |
parent | 73c6f349fcdd83d838df91e5ce4bc524e8dd989d (diff) | |
download | jquery-ui-2f3284811c867408652bea044849085bda923b34.tar.gz jquery-ui-2f3284811c867408652bea044849085bda923b34.zip |
Tooltip: Proper handled of disabled option.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 12 |
1 files changed, 6 insertions, 6 deletions
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 ) { |