aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/content.reel/content.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-02 15:12:03 -0800
committerValerio Virgillito2012-02-02 15:12:03 -0800
commit4c6ea2383650ae328ed1e69c5f9c7c6878c6f810 (patch)
tree1f4194554032bee6a87aadf15cb647398a98b437 /js/panels/properties/content.reel/content.js
parent7303d3a7c3913658bf33be5f99db85a30889cfd9 (diff)
parentd41dee0c552a30724a146965ae4272a268777fc5 (diff)
downloadninja-4c6ea2383650ae328ed1e69c5f9c7c6878c6f810.tar.gz
Merge pull request #12 from mqg734/ToolFixes
Merged pan and zoom tool and 3d stage orientation fixes. Also updated PI to support shapes properties.
Diffstat (limited to 'js/panels/properties/content.reel/content.js')
-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 }