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 d772aa86..826b4058 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -397,11 +397,15 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
397 initMontage: { 397 initMontage: {
398 value: function (scripttags) { 398 value: function (scripttags) {
399 // 399 //
400 //debugger;
400 this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () { 401 this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () {
401 //Initializing template with user's seriliazation 402 //Initializing template with user's seriliazation
402 var template = this.iframe.contentWindow.mjsTemplate.create(); 403 var template = this.iframe.contentWindow.mjsTemplate.create();
404
403 template.initWithDocument(this.iframe.contentWindow.document); 405 template.initWithDocument(this.iframe.contentWindow.document);
404 template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){/*Nothing just a required extra parameter*/}); 406 template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){
407 this.model.objects = template.deserializer.getObjectsFromLastDeserialization();
408 }.bind(this));
405 }.bind(this), false); 409 }.bind(this), false);
406 } 410 }
407 }, 411 },