aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Color/colorchippopup.reel
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-01-30 15:18:50 -0800
committerValerio Virgillito2012-02-02 14:52:47 -0800
commit57836b24aca08de591bece3e5878caaceadf5c57 (patch)
tree019921a1db922dd86bc197b5aea81588ddeecc17 /js/panels/Color/colorchippopup.reel
parentd99c9e24be7937d9577721b0ba12777bfd0991d8 (diff)
downloadninja-57836b24aca08de591bece3e5878caaceadf5c57.tar.gz
IKNINJA-1083
Fixing minor bug with no color breaking on null alpha value.
Diffstat (limited to 'js/panels/Color/colorchippopup.reel')
-rw-r--r--js/panels/Color/colorchippopup.reel/colorchippopup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/panels/Color/colorchippopup.reel/colorchippopup.js b/js/panels/Color/colorchippopup.reel/colorchippopup.js
index 03e14b28..05bcb447 100644
--- a/js/panels/Color/colorchippopup.reel/colorchippopup.js
+++ b/js/panels/Color/colorchippopup.reel/colorchippopup.js
@@ -109,7 +109,7 @@ exports.ColorChipPopup = Montage.create(Component, {
109 this.cc_hexinput.labelFunction = this._hexLabel.bind(this); 109 this.cc_hexinput.labelFunction = this._hexLabel.bind(this);
110 this.cc_hexinput.inputFunction = this._hexInput.bind(this); 110 this.cc_hexinput.inputFunction = this._hexInput.bind(this);
111 // 111 //
112 if (this.application.ninja.colorController.colorView.currentChip && this.application.ninja.colorController.colorView.currentChip.colorValue.a) { 112 if (this.application.ninja.colorController.colorView.currentChip && this.application.ninja.colorController.colorView.currentChip.colorValue && this.application.ninja.colorController.colorView.currentChip.colorValue.a) {
113 this.combo.slider.value = Math.round(this.application.ninja.colorController.colorView.currentChip.colorValue.a*100); 113 this.combo.slider.value = Math.round(this.application.ninja.colorController.colorView.currentChip.colorValue.a*100);
114 } else { 114 } else {
115 this.combo.slider.value = 100; 115 this.combo.slider.value = 100;