@@ -266,7 +266,7 @@ class ComponentCascadeDot {
266
266
let parent_nodes = v . parentNodes ;
267
267
if ( Array . isArray ( parent_nodes ) ) {
268
268
parent_nodes . forEach ( ( node , stack ) => {
269
- this . selectToParent ( 'false' , node , stack , parent_nodes [ stack - 1 ] , parent_nodes [ stack + 1 ] ) ;
269
+ this . selectToParent ( node , stack , parent_nodes [ stack - 1 ] , 'false' ) ;
270
270
} ) ;
271
271
}
272
272
} ) ;
@@ -322,7 +322,7 @@ class ComponentCascadeDot {
322
322
/*parent nodes*/
323
323
if ( Array . isArray ( parent_nodes ) ) {
324
324
for ( let stack in parent_nodes ) {
325
- this . selectToParent ( checked , parent_nodes [ stack ] , parseInt ( stack ) , parent_nodes [ stack - 1 ] ) ;
325
+ this . selectToParent ( parent_nodes [ stack ] , parseInt ( stack ) , parent_nodes [ stack - 1 ] , checked ) ;
326
326
}
327
327
}
328
328
}
@@ -384,7 +384,7 @@ class ComponentCascadeDot {
384
384
this . SELECTED_DOM . append ( div ) ;
385
385
}
386
386
387
- selectToParent ( checked , node , stack , parent_node ) {
387
+ selectToParent ( node , stack , parent_node , checked ) {
388
388
let currentStackDocuments = this . STACKS [ stack ] . childNodes ;
389
389
currentStackDocuments . forEach ( ( D , index ) => {
390
390
if ( checked == 'true' ) {
0 commit comments