@@ -105,7 +105,9 @@ $.widget = function( name, base, prototype ) {
105
105
constructor : constructor ,
106
106
namespace : namespace ,
107
107
widgetName : name ,
108
- widgetBaseClass : fullName
108
+ // TODO remove widgetBaseClass, see #8155
109
+ widgetBaseClass : fullName ,
110
+ widgetFullName : fullName
109
111
} ) ;
110
112
111
113
// If this widget is being redefined then we need to find all widgets that
@@ -148,7 +150,7 @@ $.widget.extend = function( target ) {
148
150
} ;
149
151
150
152
$ . widget . bridge = function ( name , object ) {
151
- var fullName = object . prototype . widgetBaseClass ;
153
+ var fullName = object . prototype . widgetFullName ;
152
154
$ . fn [ name ] = function ( options ) {
153
155
var isMethodCall = typeof options === "string" ,
154
156
args = slice . call ( arguments , 1 ) ,
@@ -225,7 +227,7 @@ $.Widget.prototype = {
225
227
// 1.9 BC for #7810
226
228
// TODO remove dual storage
227
229
$ . data ( element , this . widgetName , this ) ;
228
- $ . data ( element , this . widgetBaseClass , this ) ;
230
+ $ . data ( element , this . widgetFullName , this ) ;
229
231
this . _bind ( { remove : "destroy" } ) ;
230
232
this . document = $ ( element . style ?
231
233
// element within the document
@@ -255,7 +257,7 @@ $.Widget.prototype = {
255
257
. unbind ( "." + this . widgetName )
256
258
. removeAttr ( "aria-disabled" )
257
259
. removeClass (
258
- this . widgetBaseClass + "-disabled " +
260
+ this . widgetFullName + "-disabled " +
259
261
"ui-state-disabled" ) ;
260
262
261
263
// clean up events and states
@@ -322,7 +324,7 @@ $.Widget.prototype = {
322
324
323
325
if ( key === "disabled" ) {
324
326
this . widget ( )
325
- . toggleClass ( this . widgetBaseClass + "-disabled ui-state-disabled" , ! ! value )
327
+ . toggleClass ( this . widgetFullName + "-disabled ui-state-disabled" , ! ! value )
326
328
. attr ( "aria-disabled" , value ) ;
327
329
this . hoverable . removeClass ( "ui-state-hover" ) ;
328
330
this . focusable . removeClass ( "ui-state-focus" ) ;
0 commit comments