aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-23 14:14:12 -0400
committerbob <bcz@cs.brown.edu>2019-08-23 14:14:12 -0400
commitb421b50ccc5fd481b40a42945088bb51156fe499 (patch)
treea95202cd692460e0fd432dffffb45e48358bd12d /src
parentd0601e3e60b14ace35a55d4c629d700be93fe984 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/new_fields/Doc.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 4833ad259..1d529ac84 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -530,6 +530,7 @@ export namespace Doc {
target.nativeWidth = undefined;
target.nativeHeight = undefined;
target.onClick = undefined;
+ target.type = undefined;
return;
}
let temp = Doc.MakeDelegate(templateDoc);
@@ -540,7 +541,7 @@ export namespace Doc {
target.width = templateDoc.width;
target.height = templateDoc.height;
target.onClick = templateDoc.onClick instanceof ObjectField && templateDoc.onClick[Copy]();
- Doc.GetProto(target).type = DocumentType.TEMPLATE;
+ target.type = DocumentType.TEMPLATE;
if (targetData && targetData.layout === target) {
targetData.layout = temp;
targetData.miniLayout = StrCast(templateDoc.miniLayout);