aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/content.reel
diff options
context:
space:
mode:
authorhwc4872012-02-02 15:10:06 -0800
committerhwc4872012-02-02 15:10:06 -0800
commite02deaf0d1b1f7dbcf022442cb730490ac8cee8b (patch)
treed1a171a285f41c640b0ab0c8e830406ca6de113d /js/panels/properties/content.reel
parent4ebae7378608750192f8d3bb392a54222ca0ec2f (diff)
parentd41dee0c552a30724a146965ae4272a268777fc5 (diff)
downloadninja-e02deaf0d1b1f7dbcf022442cb730490ac8cee8b.tar.gz
Merge branch 'ToolFixes' of github.com:mqg734/ninja-internal into working
Diffstat (limited to 'js/panels/properties/content.reel')
-rw-r--r--js/panels/properties/content.reel/content.js7
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 }