diff options
author | tschicke-brown <tyler_schicke@brown.edu> | 2019-05-21 18:36:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 18:36:47 -0400 |
commit | d8e75e672f1384dc68af1f63aabd68d8b6820adb (patch) | |
tree | 7d55626e1cd78722c9ec297f9efce8de0f6c7265 /src/new_fields/Doc.ts | |
parent | 2c4026368078e2dc856c1cf4f8fe375cd30fbcdd (diff) | |
parent | 3020cfcf20d187c976a7f386a95bec0c41cba06b (diff) |
Merge branch 'master' into cont_menu_ui
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 b0237d04d..793a83750 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -194,7 +194,7 @@ export namespace Doc { // gets the document's prototype or returns the document if it is a prototype export function GetProto(doc: Doc) { - return Object.getOwnPropertyNames(doc).indexOf("isPrototype") === -1 ? doc.proto! : doc; + return Doc.GetT(doc, "isPrototype", "boolean", true) ? doc : doc.proto!; } |