missing setAttribute optimization fixed

This commit is contained in:
jean-emmanuel 2015-09-16 13:49:08 +02:00 • committed by bordun
parent 168ea97567
commit 400ba5b10c

View file

@ -297,7 +297,7 @@ createWidget.rgb = function(widgetData) {
rgb = hsbToRgb({h:h,s:100,b:100}),
v = widget.getValue();
pad.css('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
widget.sendValue(v);
widget.showValue(v);