Restore implicit type conversion in reporter

This commit is contained in:
Andrew Sliwinski 2014-04-10 11:34:01 -07:00
parent b301a2f8b9
commit a9b4a6d731

View file

@ -116,7 +116,7 @@ Reporter.prototype.update = function() {
if (typeof newValue === 'number' && Math.abs(newValue) > 0.001) {
newValue = Math.round(newValue * 1000) / 1000;
}
newValue = newValue.toString();
newValue = '' + newValue;
this.valueEl.html(newValue);
if (this.mode == 3) {
this.slider.val(Number(newValue));