File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,29 @@ return $.widget( "ui.progressbar", {
99
99
Math . min ( this . options . max , Math . max ( this . min , newValue ) ) ;
100
100
} ,
101
101
102
+ _elementsFromClassKey : function ( classKey ) {
103
+ switch ( classKey ) {
104
+ case "ui-progressbar" :
105
+ return this . element ;
106
+ case "ui-progressbar-value" :
107
+ return this . valueDiv ;
108
+ case "ui-progressbar-overlay" :
109
+ if ( this . overlay ) {
110
+ return this . overlay ;
111
+ }
112
+ case "ui-progressbar-indeterminate" :
113
+ if ( ! this . value ) {
114
+ return this . element
115
+ }
116
+ case "ui-progressbar-complete" :
117
+ if ( this . valueDiv . hasClass ( classKey ) ) {
118
+ return this . valueDiv ;
119
+ }
120
+ default :
121
+ return this . _superApply ( arguments ) ;
122
+ }
123
+ } ,
124
+
102
125
_setOptions : function ( options ) {
103
126
// Ensure "value" option is set after other values (like max)
104
127
var value = options . value ;
You can’t perform that action at this time.
0 commit comments