aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-24 13:23:28 -0400
committerbob <bcz@cs.brown.edu>2019-06-24 13:23:28 -0400
commit6df09d7d646c16e6469b198e7d270b6a1e45b0c7 (patch)
treecb99be157e101408068f455d2846b10fa2f4aa08 /src/new_fields/Doc.ts
parente7da3532dea3f51ffbd432e7ea64f4a34f651e08 (diff)
fixes for templates with annotations and more.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 27b3473f8..0a1964dea 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -215,7 +215,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 || doc);
+ return Doc.GetT(doc, "isPrototype", "boolean", true) || doc.isTemplate ? doc : (doc.proto || doc);
}
export function allKeys(doc: Doc): string[] {