aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/KeyController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/KeyController.ts')
-rw-r--r--src/controllers/KeyController.ts7
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