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/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;