From 54c53c326ebde0631fe5720dc912c39341966f1f Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 1 Jun 2012 16:55:31 -0700 Subject: Adding open draw to reel components --- js/document/views/design.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'js') 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, { //Initializing template with user's seriliazation var template = this.iframe.contentWindow.mjsTemplate.create(); template.initWithDocument(this.iframe.contentWindow.document); - template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){/*Nothing just a required extra parameter*/}); + template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (){ + //TODO: Verify this is properly done, seems like a hack + for (var c in template._deserializer._objects) { + //Forcing draw on components + template._deserializer._objects[c].needsDraw = true; + } + }); }.bind(this), false); } }, -- cgit v1.2.3