diff options
author | Nivesh Rajbhandari | 2012-02-02 13:22:30 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-02 13:22:30 -0800 |
commit | 89d64cf06e170c3c50b02eeadd9dcf10d6efe1a3 (patch) | |
tree | ccfc63ef6f9532151a0b85c9f06981b84c2415b5 /js/panels/properties/content.reel/content.js | |
parent | c0f43749523f4720ca4c8942fa9ac17753d93a67 (diff) | |
download | ninja-89d64cf06e170c3c50b02eeadd9dcf10d6efe1a3.tar.gz |
Updating Shapes PI to support corner radii. Also fixed PI bug where we were always updating custom section 0.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/panels/properties/content.reel/content.js')
-rw-r--r-- | js/panels/properties/content.reel/content.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js index fe6faef8..3cedee6d 100644 --- a/js/panels/properties/content.reel/content.js +++ b/js/panels/properties/content.reel/content.js | |||
@@ -182,8 +182,11 @@ exports.Content = Montage.create(Component, { | |||
182 | 182 | ||
183 | if(control.prop !== "border-color" && control.prop !== "background-color") { | 183 | if(control.prop !== "border-color" && control.prop !== "background-color") { |
184 | var currentValue = ElementsMediator.getProperty(el, control.prop, control.valueMutator); | 184 | var currentValue = ElementsMediator.getProperty(el, control.prop, control.valueMutator); |
185 | currentValue ? currentValue = currentValue : currentValue = control.defaultValue; | 185 | if(currentValue === null) |
186 | this.customSections[0].content.controls[control.id] = currentValue; | 186 | { |
187 | currentValue = control.defaultValue; | ||
188 | } | ||
189 | this.customSections[i].content.controls[control.id] = currentValue; | ||
187 | } | 190 | } |
188 | } | 191 | } |
189 | } | 192 | } |