diff options
author | Nivesh Rajbhandari | 2012-03-07 06:12:34 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-07 06:12:34 -0800 |
commit | 2a8a41711052bb557271c27f82faba8dd13fd880 (patch) | |
tree | c79664c2f7b5ce3c22b423376903d9338a0865e2 /js/components/gradientpicker.reel | |
parent | b047a9414cc07f2cb20dbfd7240ca9b0bfdc231d (diff) | |
download | ninja-2a8a41711052bb557271c27f82faba8dd13fd880.tar.gz |
preliminary support for setting gradients on webgl shapes.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/components/gradientpicker.reel')
-rwxr-xr-x | js/components/gradientpicker.reel/gradientpicker.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/components/gradientpicker.reel/gradientpicker.js b/js/components/gradientpicker.reel/gradientpicker.js index 0940be3c..cedeef50 100755 --- a/js/components/gradientpicker.reel/gradientpicker.js +++ b/js/components/gradientpicker.reel/gradientpicker.js | |||
@@ -397,7 +397,8 @@ exports.GradientPicker = Montage.create(Component, { | |||
397 | actionEvent.initEvent(type, true, true); | 397 | actionEvent.initEvent(type, true, true); |
398 | actionEvent.type = type; | 398 | actionEvent.type = type; |
399 | actionEvent.wasSetByCode = userInitiated; | 399 | actionEvent.wasSetByCode = userInitiated; |
400 | actionEvent.gradient = {stops: this.value, mode: this.mode, css: css}; | 400 | // TODO - mode seems to get reset to "rgb", so also setting a gradientMode property |
401 | actionEvent.gradient = {stops: this.value, mode: this.mode, gradientMode: this.mode, css: css}; | ||
401 | this.dispatchEvent(actionEvent); | 402 | this.dispatchEvent(actionEvent); |
402 | } | 403 | } |
403 | } | 404 | } |