aboutsummaryrefslogtreecommitdiff
path: root/node_modules
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/tools/template-creator.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/node_modules/tools/template-creator.js b/node_modules/tools/template-creator.js
index ba4cdc7a..e312cd32 100644
--- a/node_modules/tools/template-creator.js
+++ b/node_modules/tools/template-creator.js
@@ -40,7 +40,7 @@ var TemplateCreator = exports.TemplateCreator = Montage.create(Template, /** @le
40 self = this; 40 self = this;
41 41
42 this._objectNamesIndex = {}; 42 this._objectNamesIndex = {};
43 doc = this._document = document.implementation.createHTMLDocument(""); 43 //doc = this._document = document.implementation.createHTMLDocument("");
44 44
45 /* 45 /*
46function copyNode(sourceNode, targetNode, isRootNode) { 46function copyNode(sourceNode, targetNode, isRootNode) {
@@ -65,7 +65,8 @@ function copyNode(sourceNode, targetNode, isRootNode) {
65 } 65 }
66*/ 66*/
67 67
68 if (head) { 68 /*
69if (head) {
69 doc.head.innerHTML = head.innerHTML; 70 doc.head.innerHTML = head.innerHTML;
70 } 71 }
71 if (montageJsPath) { 72 if (montageJsPath) {
@@ -84,11 +85,12 @@ function copyNode(sourceNode, targetNode, isRootNode) {
84 // the first child is the title 85 // the first child is the title
85 doc.head.insertBefore(doc.createTextNode("\n "), doc.head.firstChild); 86 doc.head.insertBefore(doc.createTextNode("\n "), doc.head.firstChild);
86 } 87 }
88*/
87 89
88 //copyNode(body, this._document.body, true); 90 //copyNode(body, this._document.body, true);
89 this._ownerSerialization = serializer.serialize(components); 91 this._ownerSerialization = serializer.serialize(components);
90 this._externalObjects = serializer.getExternalObjects(); 92 this._externalObjects = serializer.getExternalObjects();
91 93
92 return this; 94 return this;
93 } 95 }
94 }, 96 },