diff options
author | bob <bcz@cs.brown.edu> | 2019-11-21 16:27:56 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-21 16:27:56 -0500 |
commit | 7ef52a87d1731770c6e1a8cd1aef31cb384fff05 (patch) | |
tree | a275203fa8ea5a0e2ce444bf75930c557a1857e2 /src/new_fields/util.ts | |
parent | 17474b9b840c78df4dc2601e82cf63a85e0bcbf7 (diff) |
made textbox sidebar toggle a widget. fixed isAnimating stuff. made TraceMobx to simplify tracing
Diffstat (limited to 'src/new_fields/util.ts')
-rw-r--r-- | src/new_fields/util.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/new_fields/util.ts b/src/new_fields/util.ts index 04194509c..4147be278 100644 --- a/src/new_fields/util.ts +++ b/src/new_fields/util.ts @@ -4,7 +4,7 @@ import { SerializationHelper } from "../client/util/SerializationHelper"; import { ProxyField } from "./Proxy"; import { RefField } from "./RefField"; import { ObjectField } from "./ObjectField"; -import { action } from "mobx"; +import { action, trace } from "mobx"; import { Parent, OnUpdate, Update, Id, SelfProxy, Self } from "./FieldSymbols"; import { DocServer } from "../client/DocServer"; @@ -12,6 +12,10 @@ function _readOnlySetter(): never { throw new Error("Documents can't be modified in read-only mode"); } +export function TraceMobx() { + //trace(); +} + export interface GetterResult { value: FieldResult; shouldReturn?: boolean; |