aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Color
diff options
context:
space:
mode:
authorEric2012-03-09 15:55:00 -0800
committerEric2012-03-09 15:55:00 -0800
commit1a70520402677cf3ba257921839a656dcf9a76c2 (patch)
tree5e6a0461e12b234f083c96b26f377815f12c3786 /js/panels/Color
parent9e048d2cf359c305e895fe7c0bebf09016896531 (diff)
parent27b81378ed07afa823b215d0af4f83e150c2222f (diff)
downloadninja-1a70520402677cf3ba257921839a656dcf9a76c2.tar.gz
Merge pull request #3 from joseeight/FileIO-Integration
Integrated dynamic path to assets
Diffstat (limited to 'js/panels/Color')
-rwxr-xr-xjs/panels/Color/colorpanelpopup.reel/colorpanelpopup.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/js/panels/Color/colorpanelpopup.reel/colorpanelpopup.js b/js/panels/Color/colorpanelpopup.reel/colorpanelpopup.js
index 299e603d..3eae3ea3 100755
--- a/js/panels/Color/colorpanelpopup.reel/colorpanelpopup.js
+++ b/js/panels/Color/colorpanelpopup.reel/colorpanelpopup.js
@@ -379,11 +379,16 @@ exports.ColorPanelPopup = Montage.create(Component, {
379 gradient.element = container; 379 gradient.element = container;
380 gradient.hack = this.hack; // TODO: Remove 380 gradient.hack = this.hack; // TODO: Remove
381 // 381 //
382 if (g && g.value && g.value.stops && g.value.mode) { 382 if (g && g.value && g.value.stops) {
383 gradient._mode = g.value.mode; 383 if (g.value.gradientMode) {
384 gradient.value = g.value.stops; 384 gradient._mode = g.value.gradientMode;
385 gradient.value = g.value.stops;
386 } else {
387 gradient._mode = 'linear';
388 gradient.value = g.value.stops;
389 }
385 } else { 390 } else {
386 gradient._mode = this.defaultGradient.mode; 391 gradient._mode = this.defaultGradient.gradientMode;
387 gradient.value = this.defaultGradient.stops; 392 gradient.value = this.defaultGradient.stops;
388 } 393 }
389 // 394 //