diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-01-13 06:16:11 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-01-13 06:16:11 -0500 |
commit | e1ed82ff684877b56925016282a0e4d5bb4e1b4b (patch) | |
tree | 7f251def17dd86da9675bf0506f7db2c5d71148f /src/controllers/KeyController.ts | |
parent | ee068ab30c43125efd2b0ab853531df9777f544f (diff) |
More controller stuff
Diffstat (limited to 'src/controllers/KeyController.ts')
-rw-r--r-- | src/controllers/KeyController.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/controllers/KeyController.ts b/src/controllers/KeyController.ts index 96e41eded..ad410d756 100644 --- a/src/controllers/KeyController.ts +++ b/src/controllers/KeyController.ts @@ -1,4 +1,5 @@ import { FieldController } from "./FieldController" +import { Utils } from "../Utils"; export class KeyController extends FieldController { get Name():string { @@ -6,7 +7,7 @@ export class KeyController extends FieldController { } constructor(private name:string){ - super(); + super(Utils.GenerateDeterministicGuid(name)); } TrySetValue(value: any): boolean { @@ -23,3 +24,7 @@ export class KeyController extends FieldController { } + +export namespace KeyStore { + export let Prototype = new KeyController("Prototype"); +}
\ No newline at end of file |