If passing a string for the value to set the control to, an error is triggered
in gauge.js:
ret = value.toFixed( decimals );
while ( ( decimals > 0 ) && ret.match( /^(-)?\d+\.(\d+)?0$/ ) ) {
decimals -= 1;
ret = value.toFixed( decimals );
}
Changed to:
ret = (parseFloat(value)).toFixed( decimals );
while ( ( decimals > 0 ) && ret.match( /^(-)?\d+\.(\d+)?0$/ ) ) {
decimals -= 1;
ret = (parseFloat(value)).toFixed( decimals );
}
Just forcing the conversion here.
Original issue reported on code.google.com by KMALIT...@gmail.com on 13 Apr 2012 at 6:33
Original issue reported on code.google.com by
KMALIT...@gmail.com
on 13 Apr 2012 at 6:33