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/controllers/styles-controller.js | |
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/controllers/styles-controller.js')
-rwxr-xr-x | js/controllers/styles-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js index e95c6614..68d031fb 100755 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -87,7 +87,7 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
87 | set : function(document) { | 87 | set : function(document) { |
88 | ///// If the document is null set default stylesheets to null | 88 | ///// If the document is null set default stylesheets to null |
89 | 89 | ||
90 | if(!document || document.currentView === "code") { | 90 | if(!document || (document.currentView === "code" && document.model.currentView.identifier !== "design-code")) { |
91 | this._currentDocument = null; | 91 | this._currentDocument = null; |
92 | this._stageStylesheet = null; | 92 | this._stageStylesheet = null; |
93 | this.defaultStylesheet = null; | 93 | this.defaultStylesheet = null; |