File tree 1 file changed +7
-13
lines changed
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -142,20 +142,14 @@ export class StyleSheet extends MutationObserver {
142
142
}
143
143
}
144
144
}
145
- } else {
146
- if ( target . isConnected ) {
147
- classNames . forEach ( ( className ) => {
148
- if ( ! oldClassNames . includes ( className ) ) {
149
- addClassName ( className ) ;
150
- }
151
- } )
152
- for ( const oldClassName of oldClassNames ) {
153
- if ( ! classNames . contains ( oldClassName ) ) {
154
- removeClassName ( oldClassName ) ;
155
- }
145
+ } else if ( target . isConnected ) {
146
+ classNames . forEach ( ( className ) => {
147
+ if ( ! oldClassNames . includes ( className ) ) {
148
+ addClassName ( className ) ;
156
149
}
157
- } else {
158
- for ( const oldClassName of oldClassNames ) {
150
+ } )
151
+ for ( const oldClassName of oldClassNames ) {
152
+ if ( ! classNames . contains ( oldClassName ) ) {
159
153
removeClassName ( oldClassName ) ;
160
154
}
161
155
}
You can’t perform that action at this time.
0 commit comments