diff options
author | Ananya Sen | 2012-05-18 16:56:16 -0700 |
---|---|---|
committer | Ananya Sen | 2012-05-18 16:56:16 -0700 |
commit | 7a22f7b368ef549a5b30c58a0f3900685b764bdb (patch) | |
tree | 44951af31368a5b287057e5cdddf0469cdc30298 /js/controllers/styles-controller.js | |
parent | 65cea92d839bcd25ea9094a0798190a4dc4bea35 (diff) | |
download | ninja-7a22f7b368ef549a5b30c58a0f3900685b764bdb.tar.gz |
integrated open code view document in new dom architecture
Signed-off-by: Ananya Sen <Ananya.Sen@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 ae504f0e..3a942364 100755 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -111,7 +111,7 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
111 | set : function(sheet) { | 111 | set : function(sheet) { |
112 | if(sheet) { | 112 | if(sheet) { |
113 | this._defaultStylesheet = sheet; | 113 | this._defaultStylesheet = sheet; |
114 | } else { | 114 | } else if(this._activeDocument.model && this._activeDocument.model.views && this._activeDocument.model.views.design){//check that the document has a design view |
115 | 115 | ||
116 | ///// Use the last stylesheet in the document as the default | 116 | ///// Use the last stylesheet in the document as the default |
117 | 117 | ||