aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-01 16:55:31 -0700
committerJose Antonio Marquez2012-06-01 16:55:31 -0700
commit54c53c326ebde0631fe5720dc912c39341966f1f (patch)
tree91e9aa03807cad4c7c47b285adecd81dd2bae1be /js/document/views
parent5b4739d78618a40cacb0e127d1cc412fb839e441 (diff)
downloadninja-54c53c326ebde0631fe5720dc912c39341966f1f.tar.gz
Adding open draw to reel components
Diffstat (limited to 'js/document/views')
-rwxr-xr-xjs/document/views/design.js8
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 },