From 9cb68d376870eea3db3636c30e5fa09d9f71c8cf Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Sun, 18 Mar 2012 18:07:40 -0700 Subject: Tests and clean-up --- node_modules/tools/template-creator.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'node_modules') 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 self = this; this._objectNamesIndex = {}; - doc = this._document = document.implementation.createHTMLDocument(""); + //doc = this._document = document.implementation.createHTMLDocument(""); /* function copyNode(sourceNode, targetNode, isRootNode) { @@ -65,7 +65,8 @@ function copyNode(sourceNode, targetNode, isRootNode) { } */ - if (head) { + /* +if (head) { doc.head.innerHTML = head.innerHTML; } if (montageJsPath) { @@ -84,11 +85,12 @@ function copyNode(sourceNode, targetNode, isRootNode) { // the first child is the title doc.head.insertBefore(doc.createTextNode("\n "), doc.head.firstChild); } +*/ //copyNode(body, this._document.body, true); this._ownerSerialization = serializer.serialize(components); this._externalObjects = serializer.getExternalObjects(); - + return this; } }, -- cgit v1.2.3