aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-16 11:42:09 -0700
committerValerio Virgillito2012-05-16 11:42:09 -0700
commit23bf5db97fb24afdb14d02faac1136fc04137e96 (patch)
treeb0d2bb48506cda93e0db62d3e77c4ca9fc7306cf /js/mediators
parent081d72d145f3b570f0f866802e015527848f690e (diff)
parent78250b70bdf0089e2b8ac56fb77e2f76ab83f34c (diff)
downloadninja-23bf5db97fb24afdb14d02faac1136fc04137e96.tar.gz
Merge pull request #238 from joseeight/Document
Fixing Chrome Preview
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index 8346c75e..e6f2cc2d 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -234,17 +234,13 @@ exports.IoMediator = Montage.create(Component, {
234 //TODO: Add attribute copying for <HEAD> and <HTML> 234 //TODO: Add attribute copying for <HEAD> and <HTML>
235 235
236 /* 236 /*
237//Testing using montage clean up method 237 var tc = this.application.ninja.documentController.activeDocument.model.views.design.iframe.contentWindow.mjsTemplateCreator, code;
238 var mjscode, mjsTemp = TemplateCreator.create(); 238 code = tc.initWithDocument(this.application.ninja.documentController.activeDocument.model.views.design.iframe.contentWindow.document);
239 239 console.log(code._ownerSerialization, code._document.getElementsByTagName('html')[0].innerHTML);
240 //mjscode = mjsTemp.initWithHeadAndBodyElements(template.head, template.body);
241 //mjscode = mjsTemp.initWithDocument(template.file.content.document);
242 mjscode = mjsTemp.initWithDocument(template.document);
243 240
244 console.log(template.head, mjscode._document.head);
245 template.file.content.document.head.innerHTML = mjscode._document.head.innerHTML.replace(regexRootUrl, ''); 241 template.file.content.document.head.innerHTML = mjscode._document.head.innerHTML.replace(regexRootUrl, '');
246 template.file.content.document.body.innerHTML = mjscode._document.body.innerHTML.replace(regexRootUrl, ''); 242 template.file.content.document.body.innerHTML = mjscode._document.body.innerHTML.replace(regexRootUrl, '');
247*/ 243 */
248 244
249 245
250 246