From 154423e60899569a8a0033b2fedca05f3041e3f9 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 21 May 2012 14:48:46 -0700 Subject: CSS Style Declaration - Handle deleting empty style --- js/panels/css-panel/styles-view-delegate.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/panels') 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, { var browserValue; if(style.editingNewStyle) { + if(property === '') { + style.propertyField.value = 'property'; + style.propertyField.isDirty = false; + style.editingNewStyle = false; + } return false; } -- cgit v1.2.3