mol_view_tree2_lib 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.deps.json +1 -1
- package/node.js +10 -2
- package/node.js.map +1 -1
- package/node.mjs +10 -2
- package/node.test.js +10 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +10 -2
- package/web.js.map +1 -1
- package/web.mjs +10 -2
package/web.mjs
CHANGED
|
@@ -2933,10 +2933,12 @@ var $;
|
|
|
2933
2933
|
result = wrappers.get(result);
|
|
2934
2934
|
}
|
|
2935
2935
|
else {
|
|
2936
|
-
|
|
2936
|
+
const put = (v) => {
|
|
2937
2937
|
if (this.cache === result)
|
|
2938
2938
|
this.absorb();
|
|
2939
|
-
|
|
2939
|
+
return v;
|
|
2940
|
+
};
|
|
2941
|
+
wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
|
|
2940
2942
|
const error = new Error(`Promise in ${this}`);
|
|
2941
2943
|
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
2942
2944
|
}
|
|
@@ -3530,6 +3532,12 @@ var $;
|
|
|
3530
3532
|
$mol_wire_atom.watching.add(this);
|
|
3531
3533
|
}
|
|
3532
3534
|
resync(args) {
|
|
3535
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
3536
|
+
const pub = this.data[cursor];
|
|
3537
|
+
if (pub && pub instanceof $mol_wire_task) {
|
|
3538
|
+
pub.destructor();
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3533
3541
|
return this.put(this.task.call(this.host, ...args));
|
|
3534
3542
|
}
|
|
3535
3543
|
once() {
|