diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-06-29 09:14:13 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-06-29 09:14:13 -0400 |
commit | 824066f6c6842d31c41b4686a6e1a9baae61c492 (patch) | |
tree | 2230e6503cf6777e21fdff70f93c2d542e2d7b2a | |
parent | 6b9131637c242dafba429460f5d1bf2aa31e136f (diff) |
Doc.MakeAlias now retuns a new delegate (instead of an empty document) when input is not a delegate.
-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 27dcfba08..e76e94d63 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -277,7 +277,7 @@ export namespace Doc { if (!GetT(doc, "isPrototype", "boolean", true)) { return Doc.MakeCopy(doc); } - return new Doc; + return Doc.MakeDelegate(doc); // bcz? } export function expandTemplateLayout(templateLayoutDoc: Doc, dataDoc?: Doc) { |