Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Dec 13, 2023
1 parent f9c5efe commit d3c7b9e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ComputationObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ export class ComputationObserver {
}
const result = await this.expr(vm);
console.log({ observe, result });
const { assignResult } = this.fromStatement;
const { assignResult, localProp } = this.fromStatement;
if (assignResult) {
if (localProp !== undefined)
throw 'NI';
Object.assign(this.enhancedElement, result);
}
else {
Expand Down
3 changes: 2 additions & 1 deletion ComputationObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export class ComputationObserver{
}
const result = await this.expr(vm);
console.log({observe, result});
const {assignResult} = this.fromStatement;
const {assignResult, localProp} = this.fromStatement;
if(assignResult){
if(localProp !== undefined) throw 'NI';
Object.assign(this.enhancedElement, result);
}else{
if(this.#localSignal === undefined){
Expand Down
29 changes: 26 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"be-linked": "0.0.70",
"be-observant": "0.0.171",
"be-propagating": "0.0.29",
"be-scoped": "0.0.21",
"be-value-added": "0.0.19",
"trans-render": "0.0.707",
"xtal-element": "0.0.579"
Expand Down

0 comments on commit d3c7b9e

Please sign in to comment.