aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/styles-view-delegate.js
diff options
context:
space:
mode:
authorEric Guzman2012-05-17 19:55:18 -0700
committerEric Guzman2012-05-17 19:55:18 -0700
commit7f0dad901bef6512357a7a768fda1cb3106ac864 (patch)
treed6fabda54309ba69a957c82c1bca28e12b28caa7 /js/panels/css-panel/styles-view-delegate.js
parent5c4cfc1a52b1cb079b1fa6f02aedcaef1ad2bc38 (diff)
downloadninja-7f0dad901bef6512357a7a768fda1cb3106ac864.tar.gz
CSS Panel - Fix style declaration interaction
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