diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-20 00:09:47 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-20 00:09:47 -0400 |
| commit | af2346983eae1145167b70faf96a9aec0ca82427 (patch) | |
| tree | 36f89aeaaf335f0d12fd690592556d831162a59c /src/new_fields/Proxy.ts | |
| parent | fa602aa4dec7b39b48779ffe907229db4d9f6264 (diff) | |
Fixed a bunch of demo bugs
Moved Field Symbols to separate file
Editing is mostly working in debug viewer
Diffstat (limited to 'src/new_fields/Proxy.ts')
| -rw-r--r-- | src/new_fields/Proxy.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/new_fields/Proxy.ts b/src/new_fields/Proxy.ts index fd99ae1c0..130ec066e 100644 --- a/src/new_fields/Proxy.ts +++ b/src/new_fields/Proxy.ts @@ -3,8 +3,9 @@ import { FieldWaiting } from "./Doc"; import { primitive, serializable } from "serializr"; import { observable, action } from "mobx"; import { DocServer } from "../client/DocServer"; -import { RefField, Id } from "./RefField"; -import { ObjectField, Copy } from "./ObjectField"; +import { RefField } from "./RefField"; +import { ObjectField } from "./ObjectField"; +import { Id, Copy, ToScriptString } from "./FieldSymbols"; @Deserializable("proxy") export class ProxyField<T extends RefField> extends ObjectField { @@ -26,6 +27,10 @@ export class ProxyField<T extends RefField> extends ObjectField { return new ProxyField<T>(this.fieldId); } + [ToScriptString]() { + return "invalid"; + } + @serializable(primitive()) readonly fieldId: string = ""; |
