diff options
author | Valerio Virgillito | 2012-06-18 22:17:02 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-18 22:17:02 -0700 |
commit | 918a4f5870e972b6e4e301c3237e065a1ffd26f5 (patch) | |
tree | 86a13e3a9cbcc46abc2ca6bc2cf8c90f77711ed1 /js/panels/properties.reel/sections | |
parent | aefeb5f96bf6e8e993ce44c4f328b56e39196414 (diff) | |
parent | 69f69c7bf43bdd9a80d8efe329cd648f975f14e9 (diff) | |
download | ninja-918a4f5870e972b6e4e301c3237e065a1ffd26f5.tar.gz |
Merge pull request #308 from joseeight/Color
Fixing no color application to all elements.
Diffstat (limited to 'js/panels/properties.reel/sections')
-rwxr-xr-x | js/panels/properties.reel/sections/custom.reel/custom.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/panels/properties.reel/sections/custom.reel/custom.js b/js/panels/properties.reel/sections/custom.reel/custom.js index c599dcb0..08434b01 100755 --- a/js/panels/properties.reel/sections/custom.reel/custom.js +++ b/js/panels/properties.reel/sections/custom.reel/custom.js | |||
@@ -116,7 +116,11 @@ exports.CustomSection = Montage.create(Component, { | |||
116 | value: function(event) { | 116 | value: function(event) { |
117 | // Change the stage color for now | 117 | // Change the stage color for now |
118 | //console.log(this, event); | 118 | //console.log(this, event); |
119 | ElementsMediator.setProperty([this.application.ninja.currentDocument.model.documentRoot], this.id, [event._event.color.css], "Change", "pi", ''); | 119 | if (event._event.color && event._event.color.css) { |
120 | ElementsMediator.setProperty([this.application.ninja.currentDocument.model.documentRoot], this.id, [event._event.color.css], "Change", "pi", ''); | ||
121 | } else { | ||
122 | ElementsMediator.setProperty([this.application.ninja.currentDocument.model.documentRoot], this.id, ['none'], "Change", "pi", ''); | ||
123 | } | ||
120 | /* | 124 | /* |
121 | var propEvent = document.createEvent("CustomEvent"); | 125 | var propEvent = document.createEvent("CustomEvent"); |
122 | propEvent.initEvent("propertyChange", true, true); | 126 | propEvent.initEvent("propertyChange", true, true); |