Allow implicit type conversion.
This commit is contained in:
parent
14a9f13ce8
commit
b301a2f8b9
4 changed files with 3 additions and 4 deletions
|
@ -110,7 +110,7 @@ Reporter.prototype.update = function() {
|
|||
newValue = target.currentCostumeIndex + 1;
|
||||
break;
|
||||
case 'timer':
|
||||
newValue = (Math.round(interp.primitiveTable.timer() * 10) / 10).toString();
|
||||
newValue = '' + Math.round(interp.primitiveTable.timer() * 10) / 10;
|
||||
break;
|
||||
}
|
||||
if (typeof newValue === 'number' && Math.abs(newValue) > 0.001) {
|
||||
|
|
Reference in a new issue