diff options
author | Sam Wilkins <samuel_wilkins@brown.edu> | 2019-06-17 13:30:37 -0400 |
---|---|---|
committer | Sam Wilkins <samuel_wilkins@brown.edu> | 2019-06-17 13:30:37 -0400 |
commit | a3e1f7332e0cb96dae0abd80a2972ae74ac31104 (patch) | |
tree | 4848942bce1200bfbd6b9f7296301fca799c0f61 /src/new_fields/Doc.ts | |
parent | d2c9550f23c4e5654822ac01b973bb965e3f6dec (diff) |
Doc server documentation completed
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index af65f5482..9da8912fe 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -80,7 +80,7 @@ export class Doc extends RefField { }); this[SelfProxy] = doc; if (!id || forceSave) { - DocServer.CreateField(doc); + DocServer.createField(doc); } return doc; } @@ -108,7 +108,7 @@ export class Doc extends RefField { private ___fields: any = {}; private [Update] = (diff: any) => { - DocServer.UpdateField(this[Id], diff); + DocServer.emitFieldUpdate(this[Id], diff); } private [Self] = this; |