aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/document-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/document-controller.js')
-rwxr-xr-xjs/controllers/document-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index ea4022b8..f1523d87 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -492,6 +492,8 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
492 currentDocument.model.views.design.hide(); 492 currentDocument.model.views.design.hide();
493 } 493 }
494 494
495 this.application.ninja.stage.clearAllCanvas();
496
495 if(didCreate) { 497 if(didCreate) {
496 newDocument.model.views.design.iframe.style.opacity = 1; 498 newDocument.model.views.design.iframe.style.opacity = 1;
497 NJevent("onOpenDocument", newDocument); 499 NJevent("onOpenDocument", newDocument);
@@ -499,7 +501,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
499 this.activeDocument = newDocument; 501 this.activeDocument = newDocument;
500 newDocument.model.views.design.show(); 502 newDocument.model.views.design.show();
501 newDocument.deserializeDocument(); 503 newDocument.deserializeDocument();
502 NJevent("switchDocument"); 504 NJevent("onSwitchDocument");
503 } 505 }
504 } 506 }
505 }, 507 },