diff options
author | Nivesh Rajbhandari | 2012-05-23 16:09:45 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-23 16:09:45 -0700 |
commit | d874b959bc297fed31d3ef3c2a7c8c77df88f761 (patch) | |
tree | d36a0b464aed1f3ff91c81df3aaf52df72451472 /js/controllers/styles-controller.js | |
parent | f97590388467b5a3316f6f155162fc293915fddc (diff) | |
parent | 0ca1910df1c78116139664bf39a95cf0ec7c8dc8 (diff) | |
download | ninja-d874b959bc297fed31d3ef3c2a7c8c77df88f761.tar.gz |
Merge branch 'refs/heads/dom-architecture-master' into Dom-Architecture
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 dcbe0eaf..8ceb9774 100755 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -81,7 +81,7 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
81 | set : function(document) { | 81 | set : function(document) { |
82 | ///// If the document is null set default stylesheets to null | 82 | ///// If the document is null set default stylesheets to null |
83 | 83 | ||
84 | if(!document) { | 84 | if(!document || document.currentView === "code") { |
85 | this._activeDocument = null; | 85 | this._activeDocument = null; |
86 | this._stageStylesheet = null; | 86 | this._stageStylesheet = null; |
87 | this.defaultStylesheet = null; | 87 | this.defaultStylesheet = null; |