diff options
author | Eric Guzman | 2012-05-18 14:35:09 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-18 14:35:09 -0700 |
commit | 4553f48aa17024922569faea1f62e9251a0c0185 (patch) | |
tree | e9a45423fd9f0e8ea3e93315402a829224df09e7 /js/panels/css-panel | |
parent | e196cb6fb32eba15156488938c8289568a6e2b88 (diff) | |
download | ninja-4553f48aa17024922569faea1f62e9251a0c0185.tar.gz |
Style sheets - Add support for removing default style sheet
Diffstat (limited to 'js/panels/css-panel')
-rw-r--r-- | js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js | 5 |
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) { |