diff options
author | ljungster <parkerljung@gmail.com> | 2022-03-17 16:49:13 -0400 |
---|---|---|
committer | ljungster <parkerljung@gmail.com> | 2022-03-17 16:49:13 -0400 |
commit | 87ecbf85db2e1d51c0bab92154500548942fac22 (patch) | |
tree | 6383d335e3d6a389ae0fb83be535aaa5afb0fbfd /src/fields/ObjectField.ts | |
parent | 3d8ed6f4fd23f65b43cff9eeb7dd91589e496697 (diff) | |
parent | 73ba1a0395167ab5949f71d0c82fa7188d37ab5c (diff) |
Merge remote-tracking branch 'origin/speedups2' into parker
Diffstat (limited to 'src/fields/ObjectField.ts')
-rw-r--r-- | src/fields/ObjectField.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fields/ObjectField.ts b/src/fields/ObjectField.ts index 92b2cfa60..daa8a7777 100644 --- a/src/fields/ObjectField.ts +++ b/src/fields/ObjectField.ts @@ -1,9 +1,9 @@ import { RefField } from "./RefField"; import { OnUpdate, Parent, Copy, ToScriptString, ToString } from "./FieldSymbols"; -import { Scripting } from "../client/util/Scripting"; +import { ScriptingGlobals } from "../client/util/ScriptingGlobals"; export abstract class ObjectField { - public [OnUpdate](diff?: any) { } + public [OnUpdate]?: (diff?: any) => void; public [Parent]?: RefField | ObjectField; abstract [Copy](): ObjectField; @@ -17,4 +17,4 @@ export namespace ObjectField { } } -Scripting.addGlobal(ObjectField);
\ No newline at end of file +ScriptingGlobals.add(ObjectField);
\ No newline at end of file |