diff options
author | Jose Antonio Marquez | 2012-02-02 18:00:45 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-02 18:00:45 -0800 |
commit | 04d89daed90c35a4393773ca2e2d0ac3a4c15cd4 (patch) | |
tree | d0041abc7379ef38b20cce148e5dea6f531b8569 /js/panels/properties/content.reel | |
parent | 4d8306b638c53899403a4f0328c02bf1ab893e8f (diff) | |
parent | c630ead20487c3948fa36448d3e7d5f7b5cba782 (diff) | |
download | ninja-04d89daed90c35a4393773ca2e2d0ac3a4c15cd4.tar.gz |
Merge branch 'refs/heads/NinjaInternal' into FileIO
Conflicts:
.gitignore
js/ninja.reel/ninja.js
Diffstat (limited to 'js/panels/properties/content.reel')
-rwxr-xr-x | 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 100755 --- 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 | } |