diff options
author | Valerio Virgillito | 2012-08-01 23:36:13 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-08-01 23:36:13 -0700 |
commit | 7e615eaa90c7bd7a4da15ce04eb089aa3367e389 (patch) | |
tree | 4d1d1553eaab8be072d0149df54c7e899fc47405 /js/stage | |
parent | 7e73b7def962f00f32b0d6acf04b0bc7005ea456 (diff) | |
download | ninja-7e615eaa90c7bd7a4da15ce04eb089aa3367e389.tar.gz |
fixing a few issues when switching between code view documents
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/layout.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js index 5cc8dbea..5e6e8152 100755 --- a/js/stage/layout.js +++ b/js/stage/layout.js | |||
@@ -69,7 +69,7 @@ exports.Layout = Montage.create(Component, { | |||
69 | set : function(value) { | 69 | set : function(value) { |
70 | if (value !== this._currentDocument) { | 70 | if (value !== this._currentDocument) { |
71 | this._currentDocument = value; | 71 | this._currentDocument = value; |
72 | if(this._currentDocument && this._currentDocument.currentView === "design") { | 72 | if(this._currentDocument && (this._currentDocument.currentView === "design" || this._currentDocument.model.currentView.identifier !== "code")) { |
73 | this.elementsToDraw = Array.prototype.slice.call(this._currentDocument.model.documentRoot.childNodes, 0); | 73 | this.elementsToDraw = Array.prototype.slice.call(this._currentDocument.model.documentRoot.childNodes, 0); |
74 | } | 74 | } |
75 | } | 75 | } |