diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-03-07 22:18:47 -0500 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-03-07 22:18:47 -0500 |
commit | c469ece08b8df888395b6c1ab8205d3a027853fa (patch) | |
tree | b81e2d92ac2fd71a56032aa98621ba192bcd5742 /src/fields/Document.ts | |
parent | 59cc888c8bf0559c50e12fd2774ea5ac4ebb3059 (diff) |
changing branches
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r-- | src/fields/Document.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts index 39648a950..1b27c4a13 100644 --- a/src/fields/Document.ts +++ b/src/fields/Document.ts @@ -212,7 +212,9 @@ export class Document extends Field { CreateAlias(id?: string): Document { let alias = new Document(id) - alias.Set(KeyStore.Prototype, this) + this.GetAsync(KeyStore.Prototype, (f: Field) => { + alias.Set(KeyStore.Prototype, f) + }) return alias } |