aboutsummaryrefslogtreecommitdiff
path: root/js/document/views/design.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/views/design.js')
-rwxr-xr-xjs/document/views/design.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js
index b3887fdf..75eb3695 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -363,11 +363,15 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
363 initMontage: { 363 initMontage: {
364 value: function (scripttags) { 364 value: function (scripttags) {
365 // 365 //
366 //debugger;
366 this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () { 367 this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () {
367 //Initializing template with user's seriliazation 368 //Initializing template with user's seriliazation
368 var template = this.iframe.contentWindow.mjsTemplate.create(); 369 var template = this.iframe.contentWindow.mjsTemplate.create();
370
369 template.initWithDocument(this.iframe.contentWindow.document); 371 template.initWithDocument(this.iframe.contentWindow.document);
370 template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){/*Nothing just a required extra parameter*/}); 372 template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){
373 this.model.objects = template.deserializer.getObjectsFromLastDeserialization();
374 }.bind(this));
371 }.bind(this), false); 375 }.bind(this), false);
372 } 376 }
373 }, 377 },