diff options
author | kimdahey <claire_kim1@brown.edu> | 2019-08-23 16:29:20 -0400 |
---|---|---|
committer | kimdahey <claire_kim1@brown.edu> | 2019-08-23 16:29:20 -0400 |
commit | deb6b40757fe0492559139cc1c9245026a645d34 (patch) | |
tree | 5c4b515eaebb4322e8166e07cfc4cbd4ba48dfb2 /src/new_fields/Doc.ts | |
parent | d722bf96c11ecff06904029d2e3f49544f6f03f9 (diff) | |
parent | bdb132d92eafc43f04bf6f002b8082d233ccafc3 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into doc_deco_claire
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 3 |
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); |