From ba120c1c8bde4d78b339b81798aaee0d7bfb2eb3 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 23 Feb 2021 14:42:42 -0500 Subject: restored export/import of collection clones. did a little cleanup of collection freeform view --- src/fields/Doc.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/fields') 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]}"-`; -- cgit v1.2.3-70-g09d2