From deadc9369dec77b425d4ff895a1abdd9fb5ed1ac Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Tue, 26 Jun 2012 14:21:22 -0700 Subject: Fixing toggle modes losing value --- js/panels/color/colorpanelpopup.reel/colorpanelpopup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/panels/color') 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, { if (tab !== this.gradients) { this.gradients.style.display = 'none'; // - if (this._components.wheel._value) { + /* +if (this._components.wheel._value) { this._components.wheel.value = {h: this._components.wheel._value.h, s: this._components.wheel._value.s, v: this._components.wheel._value.v, wasSetByCode: false}; } else { this._components.wheel.value = {h: 0, s: 1, v: 1, wasSetByCode: false}; } +*/ } else { this.gradients.style.display = 'block'; this.alpha.style.display = 'none'; -- cgit v1.2.3