diff options
Diffstat (limited to 'js/document/views')
-rwxr-xr-x | js/document/views/design.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js index 02e78e6e..05431d85 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -405,7 +405,13 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
405 | //Initializing template with user's seriliazation | 405 | //Initializing template with user's seriliazation |
406 | var template = this.iframe.contentWindow.mjsTemplate.create(); | 406 | var template = this.iframe.contentWindow.mjsTemplate.create(); |
407 | template.initWithDocument(this.iframe.contentWindow.document); | 407 | template.initWithDocument(this.iframe.contentWindow.document); |
408 | template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){/*Nothing just a required extra parameter*/}); | 408 | template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (){ |
409 | //TODO: Verify this is properly done, seems like a hack | ||
410 | for (var c in template._deserializer._objects) { | ||
411 | //Forcing draw on components | ||
412 | template._deserializer._objects[c].needsDraw = true; | ||
413 | } | ||
414 | }); | ||
409 | }.bind(this), false); | 415 | }.bind(this), false); |
410 | } | 416 | } |
411 | }, | 417 | }, |