From 69f69c7bf43bdd9a80d8efe329cd648f975f14e9 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Mon, 18 Jun 2012 16:28:18 -0700 Subject: Fixing binding of alpha slider/hottext in popup with panel --- js/panels/color/colorpanelpopup.reel/colorpanelpopup.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js b/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js index ded06797..192c62fb 100755 --- a/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js +++ b/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js @@ -76,7 +76,7 @@ exports.ColorPanelPopup = Montage.create(Component, { this._components.combo.slider.element = this.alphaSlider; this._components.combo.hottext.element = this.alphaHottext; // - Object.defineBinding(this._components.combo.hottext, "_value", { + Object.defineBinding(this._components.combo.hottext, "value", { boundObject: this._components.combo.slider, boundObjectPropertyPath: "value", oneway: false, @@ -85,14 +85,6 @@ exports.ColorPanelPopup = Montage.create(Component, { } }); // - Object.defineBinding(this._components.combo.hottext, "value", { - boundObject: this._components.combo.slider, - boundObjectPropertyPath: "value", - oneway: false, - boundValueMutator: function(value) { - return Math.round(value); - } - }); if (this.application.ninja.colorController.colorView) { Object.defineBinding(this._components.combo.slider, "value", { boundObject: this.application.ninja.colorController.colorView._combo[3].slider, -- cgit v1.2.3