File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,6 @@ $.widget( "ui.tooltip", {
105
105
// IDs of parent tooltips where we removed the title attribute
106
106
this . parents = { } ;
107
107
108
- if ( this . options . disabled ) {
109
- this . _disable ( ) ;
110
- }
111
-
112
108
// Append the aria-live region so tooltips announce correctly
113
109
this . liveRegion = $ ( "<div>" )
114
110
. attr ( {
@@ -123,14 +119,6 @@ $.widget( "ui.tooltip", {
123
119
_setOption : function ( key , value ) {
124
120
var that = this ;
125
121
126
- if ( key === "disabled" ) {
127
- this [ value ? "_disable" : "_enable" ] ( ) ;
128
- this . options [ key ] = value ;
129
-
130
- // disable element style changes
131
- return ;
132
- }
133
-
134
122
this . _super ( key , value ) ;
135
123
136
124
if ( key === "content" ) {
@@ -140,6 +128,10 @@ $.widget( "ui.tooltip", {
140
128
}
141
129
} ,
142
130
131
+ _setOptionDisabled : function ( value ) {
132
+ this [ value ? "_disable" : "_enable" ] ( ) ;
133
+ } ,
134
+
143
135
_disable : function ( ) {
144
136
var that = this ;
145
137
You can’t perform that action at this time.
0 commit comments