diff options
author | bobzel <zzzman@gmail.com> | 2022-03-07 12:14:39 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-03-07 12:14:39 -0500 |
commit | c21919a2105bd1ed4f060be149624d064739a36c (patch) | |
tree | e88bbc4db244a08bd759e2985a31593a4b521911 /src/fields/ObjectField.ts | |
parent | 7fa30c3edd851cc42cb68063d9dbdd7335fe7370 (diff) |
got rid of include cycles for Scripting globals to make hot updates work better.
Diffstat (limited to 'src/fields/ObjectField.ts')
-rw-r--r-- | src/fields/ObjectField.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fields/ObjectField.ts b/src/fields/ObjectField.ts index 461e247db..daa8a7777 100644 --- a/src/fields/ObjectField.ts +++ b/src/fields/ObjectField.ts @@ -1,5 +1,6 @@ -import { Copy, OnUpdate, Parent, ToScriptString, ToString } from "./FieldSymbols"; import { RefField } from "./RefField"; +import { OnUpdate, Parent, Copy, ToScriptString, ToString } from "./FieldSymbols"; +import { ScriptingGlobals } from "../client/util/ScriptingGlobals"; export abstract class ObjectField { public [OnUpdate]?: (diff?: any) => void; @@ -15,3 +16,5 @@ export namespace ObjectField { return field?.[Copy](); } } + +ScriptingGlobals.add(ObjectField);
\ No newline at end of file |