diff options
author | Eric Guzman | 2012-05-01 11:32:11 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-01 11:32:11 -0700 |
commit | 514aee0052f6721758401023accd9a4a56cdd217 (patch) | |
tree | 0cfd2bd1470b8efdb10eca9829505ad9ce906135 | |
parent | 0ad52cd1ba6987446b9959e399c5ad14b8c631ee (diff) | |
download | ninja-514aee0052f6721758401023accd9a4a56cdd217.tar.gz |
CSS Panel - Display no styles when deselecting all
-rw-r--r-- | js/panels/css-panel/styles-view-container.reel/styles-view-container.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js index e51c78cd..1d6d6075 100644 --- a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js +++ b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js | |||
@@ -41,7 +41,10 @@ exports.StylesViewContainer = Montage.create(Component, { | |||
41 | value: function() { | 41 | value: function() { |
42 | var elements = this.application.ninja.selectedElements; | 42 | var elements = this.application.ninja.selectedElements; |
43 | 43 | ||
44 | if(elements.length === 0) { return false; } | 44 | if(elements.length === 0) { |
45 | this.hasStyles = false; | ||
46 | return false; | ||
47 | } | ||
45 | 48 | ||
46 | this.ruleListContainer.displayListForSelection(elements); | 49 | this.ruleListContainer.displayListForSelection(elements); |
47 | this.hasStyles = true; | 50 | this.hasStyles = true; |