aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorEric Guzman2012-05-21 14:48:46 -0700
committerEric Guzman2012-05-21 14:48:46 -0700
commit154423e60899569a8a0033b2fedca05f3041e3f9 (patch)
tree7daf9f03fbbea1839df2f412eccd5d5319f54e8b /js/panels
parent121c25b6d581758d7a9ae19cb3e4416835da6964 (diff)
downloadninja-154423e60899569a8a0033b2fedca05f3041e3f9.tar.gz
CSS Style Declaration - Handle deleting empty style
Diffstat (limited to 'js/panels')
-rw-r--r--js/panels/css-panel/styles-view-delegate.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js
index a187a702..56727d40 100644
--- a/js/panels/css-panel/styles-view-delegate.js
+++ b/js/panels/css-panel/styles-view-delegate.js
@@ -142,6 +142,11 @@ exports.StylesViewMediator = Montage.create(Component, {
142 var browserValue; 142 var browserValue;
143 143
144 if(style.editingNewStyle) { 144 if(style.editingNewStyle) {
145 if(property === '') {
146 style.propertyField.value = 'property';
147 style.propertyField.isDirty = false;
148 style.editingNewStyle = false;
149 }
145 return false; 150 return false;
146 } 151 }
147 152