diff options
author | bob <bcz@cs.brown.edu> | 2019-06-07 19:42:43 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-07 19:42:43 -0400 |
commit | e1b7feda380f540e677e69e306d91d6b57ce03e7 (patch) | |
tree | 97f1403f70af28cd541ea73d7526f8fecf927bc0 /src/new_fields/Doc.ts | |
parent | 411a453970d96b145875031ffbecbee9461162fb (diff) |
tree view reordering.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 7f7263cf1..7e02a5bc5 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -211,13 +211,11 @@ export namespace Doc { return Array.from(results); } - export function MakeAlias(doc: Doc) { - const alias = new Doc; if (!GetT(doc, "isPrototype", "boolean", true)) { - alias.proto = doc.proto; + return Doc.MakeCopy(doc); } - return alias; + return new Doc; } export function MakeCopy(doc: Doc, copyProto: boolean = false): Doc { |