diff options
author | dash <stanley_yip@brown.edu> | 2019-07-30 17:03:27 -0400 |
---|---|---|
committer | dash <stanley_yip@brown.edu> | 2019-07-30 17:03:27 -0400 |
commit | 5ec18c73ec04d0f50cedb220518be9c58e62997c (patch) | |
tree | e7530d6301d752da51c41629bdb94be52c83bed3 /src/new_fields/ObjectField.ts | |
parent | 8ff901c58963aca8bbe5168d233e579c8aa0686c (diff) | |
parent | fd4760cc038ce36eb1974318cb867f8c2476c363 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/new_fields/ObjectField.ts')
-rw-r--r-- | src/new_fields/ObjectField.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/new_fields/ObjectField.ts b/src/new_fields/ObjectField.ts index 5f4a6f8fb..65ada91c0 100644 --- a/src/new_fields/ObjectField.ts +++ b/src/new_fields/ObjectField.ts @@ -1,6 +1,7 @@ import { Doc } from "./Doc"; import { RefField } from "./RefField"; import { OnUpdate, Parent, Copy, ToScriptString } from "./FieldSymbols"; +import { Scripting } from "../client/util/Scripting"; export abstract class ObjectField { protected [OnUpdate](diff?: any) { } @@ -15,3 +16,5 @@ export namespace ObjectField { return field[Copy](); } } + +Scripting.addGlobal(ObjectField);
\ No newline at end of file |