diff options
author | Armen Kesablyan | 2012-07-02 13:19:20 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-07-02 13:19:20 -0700 |
commit | 526b9d76686323f488f1b26175440172b715d808 (patch) | |
tree | 47fc6bd90715b403a08d08a48a86f4d24da1ba29 /js/components/ui | |
parent | b194664df7e01aaeb8d1e7220a6de0e7f879f1db (diff) | |
parent | 12de4e49a309e210c13eb40b2ffa158ef2eb54a7 (diff) | |
download | ninja-526b9d76686323f488f1b26175440172b715d808.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'js/components/ui')
-rwxr-xr-x | js/components/ui/color-chip.reel/color-chip.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/components/ui/color-chip.reel/color-chip.js b/js/components/ui/color-chip.reel/color-chip.js index a684d0db..dd786d15 100755 --- a/js/components/ui/color-chip.reel/color-chip.js +++ b/js/components/ui/color-chip.reel/color-chip.js | |||
@@ -82,7 +82,11 @@ var ColorChip = exports.ColorChip = Montage.create(Component, { | |||
82 | // This is a single chip - Not related to the color panel -- Set the initial color if found | 82 | // This is a single chip - Not related to the color panel -- Set the initial color if found |
83 | var mode = "rgb", r = 0, g = 0, b = 0, a = 1, css = "rgb(0,0,0)"; | 83 | var mode = "rgb", r = 0, g = 0, b = 0, a = 1, css = "rgb(0,0,0)"; |
84 | 84 | ||
85 | if(this.color) { | 85 | if(this.color && this.color.color) { |
86 | var g = this.color.color; | ||
87 | g.wasSetByCode = true; | ||
88 | this.chipBtn.color(this.color.mode, g); | ||
89 | } else if (this.color) { | ||
86 | var colorObj = this.application.ninja.colorController.getColorObjFromCss(this.color.css); | 90 | var colorObj = this.application.ninja.colorController.getColorObjFromCss(this.color.css); |
87 | mode = colorObj.mode; | 91 | mode = colorObj.mode; |
88 | r = colorObj.value.r; | 92 | r = colorObj.value.r; |