@ -62,7 +62,7 @@ class CompelGenerator {
curExtStore = ssd . _ extStore . setupForGeneralStyling ( ) ;
curExtStore = ssd . _ extStore . setupForGeneralStyling ( ) ;
}
}
if ( curExtStore . getStylingDistribution ( ) ( ssd , this . _ element , counter ) ) {
if ( curExtStore . getStylingDistribution ( ) ( ssd , component . _ element , counter ) ) {
forCollection . push ( ssd ) ;
forCollection . push ( ssd ) ;
}
}
}
}
@ -167,7 +167,8 @@ class CompelGenerator {
/ * *
/ * *
* Generates and appends a child Component .
* Generates and appends a child Component .
* @ param { Component } component the child component to add it .
* @ param { Component } parent component the child component to add it .
* @ param { Component | WebTrinity | string } child
* @ returns { WebTrinity }
* @ returns { WebTrinity }
* /
* /
appendChildComponent ( parent , child ) {
appendChildComponent ( parent , child ) {
@ -182,10 +183,10 @@ class CompelGenerator {
if ( child instanceof HTMLElement ) {
if ( child instanceof HTMLElement ) {
console . log ( "No wenity set - htmlEl was given" ) ;
console . log ( "No wenity set - htmlEl was given" ) ;
childWT . compext = component ;
childWT . compext = child ;
}
}
parent . append ( childWT . compext ) ;
parent . _ element . append ( childWT . compext ) ;
return childWT ;
return childWT ;
}
}
@ -208,7 +209,7 @@ class CompelGenerator {
* /
* /
let wenities = [ ] ;
let wenities = [ ] ;
for ( cons t child of component . _ children ) {
for ( le t child of component . _ children ) {
child = child . generate ( this , styleStore , functionStore ) ;
child = child . generate ( this , styleStore , functionStore ) ;
let wenity = this . appendChildComponent ( component , child ) ;
let wenity = this . appendChildComponent ( component , child ) ;
@ -231,6 +232,13 @@ class CompelGenerator {
* /
* /
generate ( component , styleStore = null , functionStore = null ) {
generate ( component , styleStore = null , functionStore = null ) {
if ( ! styleStore ) {
styleStore = component . _ stylesExtStore ;
}
if ( ! functionStore ) {
functionStore = component . _ functionsExtStore ;
}
/ * *
/ * *
* DEAL WITH COMPONENT MODIFICATION FIRST
* DEAL WITH COMPONENT MODIFICATION FIRST
*
*
@ -276,7 +284,7 @@ class CompelGenerator {
for ( const child of childrenWenities ) {
for ( const child of childrenWenities ) {
if ( child . scripts ) {
if ( child . scripts ) {
executeOnExtStoreTypeCollectedTriple (
executeOnExtStoreTypeCollectedTriple (
( extstoretype ) => transferCollectedFunctions ( child . scripts , funcCollections , extstoretype )
( extstoretype ) => this . transferCollectedFunctions ( child . scripts , funcCollections , extstoretype )
) ;
) ;
}
}
}
}