File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,12 @@ function applyPropsToConfig(config, props) {
8787 if ( typeof item === 'function' && item . $$isState ) {
8888 o . $$attributesStateListeners . push ( item . $$subscribe ( value => {
8989 let setterName = createSetterName ( prop ) ;
90+ if ( prop === 'class' && ! isHtmlType ( o . xtype ) ) {
91+ setterName = 'setCls' ;
92+ }
9093 if ( typeof o [ setterName ] === 'function' && ! o . destroyed ) {
91- o [ createSetterName ( prop ) ] ( buildAttributeValue ( ) ) ;
94+ // o[createSetterName(prop)](buildAttributeValue());
95+ o [ setterName ] ( buildAttributeValue ( ) ) ;
9296 }
9397 } ) ) ;
9498 }
@@ -106,8 +110,12 @@ function applyPropsToConfig(config, props) {
106110 config . listeners . push ( createEventObject ( 'initialize' , ( o ) => {
107111 o . $$stateListener = propsProp . $$subscribe ( value => {
108112 let setterName = createSetterName ( prop ) ;
113+ if ( prop === 'class' && ! isHtmlType ( o . xtype ) ) {
114+ setterName = 'setCls' ;
115+ }
109116 if ( typeof o [ setterName ] === 'function' && ! o . destroyed ) {
110- o [ createSetterName ( prop ) ] ( value ) ;
117+ // o[createSetterName(prop)](value);
118+ o [ setterName ] ( value ) ;
111119 }
112120 } ) ;
113121 } ) ) ;
You can’t perform that action at this time.
0 commit comments