diff options
Diffstat (limited to 'js/stage/stage-view.reel')
-rwxr-xr-x | js/stage/stage-view.reel/stage-view.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js index e8f29306..139fa032 100755 --- a/js/stage/stage-view.reel/stage-view.js +++ b/js/stage/stage-view.reel/stage-view.js | |||
@@ -37,28 +37,6 @@ exports.StageView = Montage.create(Component, { | |||
37 | */ | 37 | */ |
38 | switchDocument:{ | 38 | switchDocument:{ |
39 | value: function(doc){ | 39 | value: function(doc){ |
40 | this.application.ninja.documentController._hideCurrentDocument(); | ||
41 | this.application.ninja.documentController.activeDocument = doc; | ||
42 | |||
43 | if(this.application.ninja.documentController.activeDocument.currentView === "design") { | ||
44 | this.application.ninja.currentDocument = this.application.ninja.documentController.activeDocument; | ||
45 | } | ||
46 | |||
47 | this.application.ninja.stage._scrollFlag = false; // TODO HACK to prevent type error on Hide/Show Iframe | ||
48 | |||
49 | |||
50 | // this.application.ninja.documentController._showCurrentDocument(); | ||
51 | // Inline function below | ||
52 | if(this.activeDocument) { | ||
53 | this.activeDocument.container.style["display"] = "block"; | ||
54 | if(this.activeDocument.currentView === "design"){ | ||
55 | this.activeDocument.container.parentNode.style["display"] = "block"; | ||
56 | this.activeDocument.restoreAppState(); | ||
57 | } else { | ||
58 | //hide the iframe when switching to code view | ||
59 | document.getElementById("iframeContainer").style.display = "none"; | ||
60 | } | ||
61 | } | ||
62 | 40 | ||
63 | 41 | ||
64 | //focus editor | 42 | //focus editor |