diff options
author | Valerio Virgillito | 2012-05-31 15:27:03 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-31 15:27:03 -0700 |
commit | ffe6c157279e115f4658d8c66622085f05cfbf43 (patch) | |
tree | 7636a27a6f5fd32d853c118c4a0d16c51af32a36 /js/stage | |
parent | 6307b0930f1a8452de954ae16e293da2f575db04 (diff) | |
download | ninja-ffe6c157279e115f4658d8c66622085f05cfbf43.tar.gz |
fixing the switching between various types of documents
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 10 |
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 | }, |