Skip to content

Commit

Permalink
[colorpicker] Stop using the return value from _setElementColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Apr 10, 2012
1 parent faed5ba commit 157b82d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/widgets/colorpicker/js/colorpicker.js
Expand Up @@ -175,9 +175,11 @@ $.widget( "todons.colorpicker", $.todons.colorwidget, {
}, },


_updateSelectors: function(hsl) { _updateSelectors: function(hsl) {
var clr = $.todons.colorwidget.prototype._setElementColor.call(this, this._ui.hs.selector, [hsl[0], 1.0 - hsl[1], hsl[2]], "background").clr, var gray = $.todons.colorwidget.clrlib.RGBToHTML([hsl[2], hsl[2], hsl[2]]),
gray = $.todons.colorwidget.clrlib.RGBToHTML([hsl[2], hsl[2], hsl[2]]); clr;


$.todons.colorwidget.prototype._setElementColor.call(this, this._ui.hs.selector, [hsl[0], 1.0 - hsl[1], hsl[2]], "background");
clr = this._ui.hs.selector.jqmData("clr");
this._ui.hs.valMask.css((hsl[2] < 0.5) this._ui.hs.valMask.css((hsl[2] < 0.5)
? { background : "#000000" , opacity : (1.0 - hsl[2] * 2.0) } ? { background : "#000000" , opacity : (1.0 - hsl[2] * 2.0) }
: { background : "#ffffff" , opacity : ((hsl[2] - 0.5) * 2.0) }); : { background : "#ffffff" , opacity : ((hsl[2] - 0.5) * 2.0) });
Expand Down

0 comments on commit 157b82d

Please sign in to comment.