aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/styles-view-delegate.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/styles-view-delegate.js')
-rw-r--r--js/panels/css-panel/styles-view-delegate.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js
index e00d7fca..38b0fcc6 100644
--- a/js/panels/css-panel/styles-view-delegate.js
+++ b/js/panels/css-panel/styles-view-delegate.js
@@ -125,7 +125,7 @@ exports.StylesViewMediator = Montage.create(Component, {
125 nextFocus = style.getSiblingStyle('next'); 125 nextFocus = style.getSiblingStyle('next');
126 if(nextFocus) { 126 if(nextFocus) {
127 nextFocus.propertyField.start(); 127 nextFocus.propertyField.start();
128 } else { 128 } else if(style.dirty) {
129 style.parentComponent.parentComponent.addNewStyle(); 129 style.parentComponent.parentComponent.addNewStyle();
130 style.editingNewStyle = false; 130 style.editingNewStyle = false;
131 setTimeout(function() { 131 setTimeout(function() {
@@ -189,11 +189,6 @@ exports.StylesViewMediator = Montage.create(Component, {
189 style.invalid = (browserValue === null); 189 style.invalid = (browserValue === null);
190 190
191 this._dispatchChange(property, browserValue); 191 this._dispatchChange(property, browserValue);
192
193 if(style.editingNewStyle) {
194 style.parentComponent.parentComponent.addNewStyle();
195 style.editingNewStyle = false;
196 }
197 } 192 }
198 }, 193 },
199 194