From 66632a6e0de0998ff6d36abdaa8c3a546eada0f5 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Wed, 30 May 2012 23:02:46 -0700 Subject: fixing the closing of documents Signed-off-by: Valerio Virgillito --- js/controllers/document-controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js/controllers') diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index e059e7e1..13ab33cc 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js @@ -53,10 +53,9 @@ exports.DocumentController = Montage.create(Component, { document.getElementById("iframeContainer").style.display = "block"; document.getElementById("codeViewContainer").style.display = "block"; } else if(this._currentDocument.currentView === "design") { - this._currentDocument.model.currentView.show(); + } else { document.getElementById("iframeContainer").style.display = "none"; - this._currentDocument.model.currentView.show(); } } -- cgit v1.2.3