diff options
author | bob <bcz@cs.brown.edu> | 2019-06-20 17:11:29 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-20 17:11:29 -0400 |
commit | 46a2a9e1f10b63feeb21a1e186daeaef2ccbcda4 (patch) | |
tree | b0e8ebeff84345794a0056f94057d2aa48f0f133 /src/new_fields/Doc.ts | |
parent | a39b2854b848006c19460685d7bf4005a9f650ae (diff) | |
parent | a5dc0e04add05f2f5bf1e17f1ac0a5e0aba1ea41 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 7bae7a02d..9bacf49ba 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -207,7 +207,7 @@ export namespace Doc { // gets the document's prototype or returns the document if it is a prototype export function GetProto(doc: Doc) { - return Doc.GetT(doc, "isPrototype", "boolean", true) ? doc : doc.proto!; + return Doc.GetT(doc, "isPrototype", "boolean", true) ? doc : (doc.proto || doc); } export function allKeys(doc: Doc): string[] { |