diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-30 01:24:42 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-30 01:24:42 -0400 |
| commit | e041988b84553797699a5a232e26e72252460e01 (patch) | |
| tree | 32c7aa7eefcc76ab36bc3eec292700dd2a0dd3cf /src/new_fields | |
| parent | 5248a770123e312e1684d7147ecb7118dd6ef1e7 (diff) | |
| parent | 8f1159a8216a56caeabe9bed686852f18758eddb (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/new_fields')
| -rw-r--r-- | src/new_fields/Doc.ts | 3 | ||||
| -rw-r--r-- | src/new_fields/SchemaHeaderField.ts | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index da4f459e2..59314783b 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -12,6 +12,7 @@ import { scriptingGlobal } from "../client/util/Scripting"; import { List } from "./List"; import { DocumentType } from "../client/documents/Documents"; import { ComputedField } from "./ScriptField"; +import { PrefetchProxy } from "./Proxy"; export namespace Field { export function toKeyValueString(doc: Doc, key: string): string { @@ -348,7 +349,7 @@ export namespace Doc { while (proto && !Doc.IsPrototype(proto)) { proto = proto.proto; } - (proto ? proto : doc)[fieldKey + "_ext"] = docExtensionForField; + (proto ? proto : doc)[fieldKey + "_ext"] = new PrefetchProxy(docExtensionForField); }, 0); } else if (doc instanceof Doc) { // backward compatibility -- add fields for docs that don't have them already docExtensionForField.extendsDoc === undefined && setTimeout(() => docExtensionForField.extendsDoc = doc, 0); diff --git a/src/new_fields/SchemaHeaderField.ts b/src/new_fields/SchemaHeaderField.ts index d124a3907..d5da56b10 100644 --- a/src/new_fields/SchemaHeaderField.ts +++ b/src/new_fields/SchemaHeaderField.ts @@ -49,7 +49,6 @@ export class SchemaHeaderField extends ObjectField { type: number; constructor(heading: string = "", color?: string, type?: ColumnType) { - console.log("CREATING SCHEMA HEADER FIELD"); super(); this.heading = heading; |
