diff options
author | Eric Guzman | 2012-05-21 12:40:05 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-21 12:40:05 -0700 |
commit | 1e6f46ba556ca3270c89fb848d93856804dd1cc8 (patch) | |
tree | e1e8601139ffa1b9f7d0e744f3a63a17e20e2dea /js/panels/css-panel/styles-view-delegate.js | |
parent | f71e8f853605f0eb4deaf16263124aac1aad9ee1 (diff) | |
download | ninja-1e6f46ba556ca3270c89fb848d93856804dd1cc8.tar.gz |
CSS Style Component - Moved unit identification to local change handler instead of delegate
Diffstat (limited to 'js/panels/css-panel/styles-view-delegate.js')
-rw-r--r-- | js/panels/css-panel/styles-view-delegate.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js index 79ae35d1..a187a702 100644 --- a/js/panels/css-panel/styles-view-delegate.js +++ b/js/panels/css-panel/styles-view-delegate.js | |||
@@ -177,16 +177,6 @@ exports.StylesViewMediator = Montage.create(Component, { | |||
177 | return false; | 177 | return false; |
178 | } | 178 | } |
179 | 179 | ||
180 | ///// Auto-fill units if not provided and units | ||
181 | ///// not previously stored | ||
182 | units = style.getUnits(value); | ||
183 | if(style.units && units === null && parseInt(value)) { | ||
184 | value += style.units; | ||
185 | style.valueField.value = value; | ||
186 | } else if (value !== '0') { | ||
187 | style.units = units; | ||
188 | } | ||
189 | |||
190 | ///// update value | 180 | ///// update value |
191 | browserValue = this.stylesController.setStyle(rule, property, value); | 181 | browserValue = this.stylesController.setStyle(rule, property, value); |
192 | style.browserValue = browserValue; | 182 | style.browserValue = browserValue; |