From bf5b9e509d034fc9b2cf3aacdcae306781f59f7e Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Tue, 26 Jun 2012 16:02:24 -0700 Subject: Fix to remember gradient from chip input --- js/panels/color/colorpopup-manager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/panels/color/colorpopup-manager.js b/js/panels/color/colorpopup-manager.js index 0f8e20e6..c29e338b 100755 --- a/js/panels/color/colorpopup-manager.js +++ b/js/panels/color/colorpopup-manager.js @@ -407,6 +407,10 @@ exports.ColorPopupManager = Montage.create(Component, { // this._popupChipBase.colorManager = ColorModel.create(); // + if (e._event.srcElement.colorMode === 'gradient'){ + this._popupChipBase.colorManager.gradient = {value: e._event.srcElement.colorValue}; + } + // this._popupChipBase.addEventListener('change', this, false); this._popupChipBase.addEventListener('changing', this, false); // -- cgit v1.2.3