aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-26 14:21:22 -0700
committerJose Antonio Marquez2012-06-26 14:21:22 -0700
commitdeadc9369dec77b425d4ff895a1abdd9fb5ed1ac (patch)
treea8cc47c50ff985065266f0656cb9ae8865792ea8
parent0a36060df9b25db22aa744582946069a92d62206 (diff)
downloadninja-deadc9369dec77b425d4ff895a1abdd9fb5ed1ac.tar.gz
Fixing toggle modes losing value
-rwxr-xr-xjs/panels/color/colorpanelpopup.reel/colorpanelpopup.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js b/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js
index f2e5bb2e..3eb6eec6 100755
--- a/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js
+++ b/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js
@@ -282,11 +282,13 @@ exports.ColorPanelPopup = Montage.create(Component, {
282 if (tab !== this.gradients) { 282 if (tab !== this.gradients) {
283 this.gradients.style.display = 'none'; 283 this.gradients.style.display = 'none';
284 // 284 //
285 if (this._components.wheel._value) { 285 /*
286if (this._components.wheel._value) {
286 this._components.wheel.value = {h: this._components.wheel._value.h, s: this._components.wheel._value.s, v: this._components.wheel._value.v, wasSetByCode: false}; 287 this._components.wheel.value = {h: this._components.wheel._value.h, s: this._components.wheel._value.s, v: this._components.wheel._value.v, wasSetByCode: false};
287 } else { 288 } else {
288 this._components.wheel.value = {h: 0, s: 1, v: 1, wasSetByCode: false}; 289 this._components.wheel.value = {h: 0, s: 1, v: 1, wasSetByCode: false};
289 } 290 }
291*/
290 } else { 292 } else {
291 this.gradients.style.display = 'block'; 293 this.gradients.style.display = 'block';
292 this.alpha.style.display = 'none'; 294 this.alpha.style.display = 'none';