56c25fee90
* new binding... - state manager - one store per screen - not passing * client lib binding - tests passing * binding fully working again post stateManager * bugfix with button component * Control flow ("code") now working, tests passing * Events List now reading from component definition * fix to button.svelte - missing props._children
17 lines
385 B
JavaScript
17 lines
385 B
JavaScript
export const insertCodeMetadata = props => {
|
|
if (props._code && props._code.length > 0) {
|
|
props._codeMeta = codeMetaData(props._code)
|
|
}
|
|
|
|
if (!props._children || props._children.length === 0) return
|
|
|
|
for (let child of props._children) {
|
|
insertCodeMetadata(child)
|
|
}
|
|
}
|
|
|
|
const codeMetaData = code => {
|
|
return {
|
|
dependsOnStore: RegExp(/(store.)/g).test(code),
|
|
}
|
|
}
|