aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/tooltip.js')
-rw-r--r--ui/widgets/tooltip.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js
index 512224050..daf783a98 100644
--- a/ui/widgets/tooltip.js
+++ b/ui/widgets/tooltip.js
@@ -105,10 +105,6 @@ $.widget( "ui.tooltip", {
// IDs of parent tooltips where we removed the title attribute
this.parents = {};
- if ( this.options.disabled ) {
- this._disable();
- }
-
// Append the aria-live region so tooltips announce correctly
this.liveRegion = $( "<div>" )
.attr( {
@@ -123,14 +119,6 @@ $.widget( "ui.tooltip", {
_setOption: function( key, value ) {
var that = this;
- if ( key === "disabled" ) {
- this[ value ? "_disable" : "_enable" ]();
- this.options[ key ] = value;
-
- // disable element style changes
- return;
- }
-
this._super( key, value );
if ( key === "content" ) {
@@ -140,6 +128,10 @@ $.widget( "ui.tooltip", {
}
},
+ _setOptionDisabled: function( value ) {
+ this[ value ? "_disable" : "_enable" ]();
+ },
+
_disable: function() {
var that = this;