aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel')
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
index 383fc467..d6ec5349 100644
--- a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
+++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
@@ -37,6 +37,11 @@ exports.StyleSheetsView = Montage.create(Component, {
37 set: function(sheet) { 37 set: function(sheet) {
38 if(sheet === this._defaultStyleSheet) { return false; } 38 if(sheet === this._defaultStyleSheet) { return false; }
39 39
40 if(sheet === null) {
41 this._defaultStyleSheet = null;
42 return;
43 }
44
40 var sheetComponent, oldDefaultSheet; 45 var sheetComponent, oldDefaultSheet;
41 46
42 if(this.styleSheetList) { 47 if(this.styleSheetList) {