aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Guzman2012-05-01 11:32:11 -0700
committerEric Guzman2012-05-01 11:32:11 -0700
commit514aee0052f6721758401023accd9a4a56cdd217 (patch)
tree0cfd2bd1470b8efdb10eca9829505ad9ce906135 /js
parent0ad52cd1ba6987446b9959e399c5ad14b8c631ee (diff)
downloadninja-514aee0052f6721758401023accd9a4a56cdd217.tar.gz
CSS Panel - Display no styles when deselecting all
Diffstat (limited to 'js')
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.js5
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;