diff options
author | laurawilsonri <laura_wilson@brown.edu> | 2019-02-25 20:11:37 -0500 |
---|---|---|
committer | laurawilsonri <laura_wilson@brown.edu> | 2019-02-25 20:11:37 -0500 |
commit | 3ef178ab23eae665a7323ae54e14114a2b6e656e (patch) | |
tree | 5f97a342f4e1e8d322035158e53eaf4bd4774305 /src/fields/Field.ts | |
parent | 171852260c04ba7aafd789b231d98cdaa2a7dc8d (diff) | |
parent | 292ff1a8d75f8b15f9388d2c577e09a13836d5dc (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into improveText
Diffstat (limited to 'src/fields/Field.ts')
-rw-r--r-- | src/fields/Field.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fields/Field.ts b/src/fields/Field.ts index c7e0232af..d48509a47 100644 --- a/src/fields/Field.ts +++ b/src/fields/Field.ts @@ -1,6 +1,7 @@ import { Utils } from "../Utils"; import { Types } from "../server/Message"; +import { computed } from "mobx"; export function Cast<T extends Field>(field: FieldValue<Field>, ctor: { new(): T }): Opt<T> { if (field) { @@ -25,6 +26,8 @@ export abstract class Field { } private id: FieldId; + + @computed get Id(): FieldId { return this.id; } |