aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-23 14:42:42 -0500
committerbobzel <zzzman@gmail.com>2021-02-23 14:42:42 -0500
commitba120c1c8bde4d78b339b81798aaee0d7bfb2eb3 (patch)
tree46cb0f40ce94bd2a44244c49b41c56b84da4817b /src/fields/Doc.ts
parentee2f9feea2ec70dbf5a60d2b26a61b05eca3dbf5 (diff)
restored export/import of collection clones. did a little cleanup of collection freeform view
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index da95c3605..4ae436083 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -195,11 +195,7 @@ export class Doc extends RefField {
private [Self] = this;
private [SelfProxy]: any;
- public [FieldsSym](clear?: boolean) {
- const self = this[SelfProxy];
- runInAction(() => clear && Array.from(Object.keys(self)).forEach(key => delete self[key]));
- return this.___fields;
- }
+ public [FieldsSym] = () => this[Self].___fields; // Object.keys(this).reduce((fields, key) => { fields[key] = this[key]; return fields; }, {} as any);
public [WidthSym] = () => NumCast(this[SelfProxy]._width);
public [HeightSym] = () => NumCast(this[SelfProxy]._height);
public [ToScriptString] = () => `DOC-"${this[Self][Id]}"-`;