aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel/stage.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-31 15:27:03 -0700
committerValerio Virgillito2012-05-31 15:27:03 -0700
commitffe6c157279e115f4658d8c66622085f05cfbf43 (patch)
tree7636a27a6f5fd32d853c118c4a0d16c51af32a36 /js/stage/stage.reel/stage.js
parent6307b0930f1a8452de954ae16e293da2f575db04 (diff)
downloadninja-ffe6c157279e115f4658d8c66622085f05cfbf43.tar.gz
fixing the switching between various types of documents
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-xjs/stage/stage.reel/stage.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 4c4ba6c9..cd08c55d 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -187,8 +187,18 @@ exports.Stage = Montage.create(Component, {
187 drawUtils._eltArray.length = 0; 187 drawUtils._eltArray.length = 0;
188 drawUtils._planesArray.length = 0; 188 drawUtils._planesArray.length = 0;
189 } else if(this._currentDocument.currentView === "design") { 189 } else if(this._currentDocument.currentView === "design") {
190 this.showCodeViewBar(false);
191 this.restoreAllPanels();
192 this.hideCanvas(false);
193 this.showRulers();
194
190 this.clearAllCanvas(); 195 this.clearAllCanvas();
191 this.initWithDocument(false); 196 this.initWithDocument(false);
197 } else {
198 this.showCodeViewBar(true);
199 this.collapseAllPanels();
200 this.hideCanvas(true);
201 this.hideRulers();
192 } 202 }
193 } 203 }
194 }, 204 },