From 514aee0052f6721758401023accd9a4a56cdd217 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 1 May 2012 11:32:11 -0700 Subject: CSS Panel - Display no styles when deselecting all --- .../css-panel/styles-view-container.reel/styles-view-container.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js') 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, { value: function() { var elements = this.application.ninja.selectedElements; - if(elements.length === 0) { return false; } + if(elements.length === 0) { + this.hasStyles = false; + return false; + } this.ruleListContainer.displayListForSelection(elements); this.hasStyles = true; -- cgit v1.2.3