diff options
author | Jose Antonio Marquez | 2012-03-18 18:07:40 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-18 18:07:40 -0700 |
commit | 9cb68d376870eea3db3636c30e5fa09d9f71c8cf (patch) | |
tree | 9eaaf887904c5bf7b687ad1a51065d2bb88ae9b7 /node_modules/tools/template-creator.js | |
parent | 06a790e0f830d01539dc9e80c90e2bcdabaa666b (diff) | |
download | ninja-9cb68d376870eea3db3636c30e5fa09d9f71c8cf.tar.gz |
Tests and clean-up
Diffstat (limited to 'node_modules/tools/template-creator.js')
-rw-r--r-- | node_modules/tools/template-creator.js | 8 |
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 | /* |
46 | function copyNode(sourceNode, targetNode, isRootNode) { | 46 | function copyNode(sourceNode, targetNode, isRootNode) { |
@@ -65,7 +65,8 @@ function copyNode(sourceNode, targetNode, isRootNode) { | |||
65 | } | 65 | } |
66 | */ | 66 | */ |
67 | 67 | ||
68 | if (head) { | 68 | /* |
69 | if (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 | }, |