Allow implicit type conversion.

This commit is contained in:
Andrew Sliwinski 2014-04-09 19:26:25 -07:00
parent 14a9f13ce8
commit b301a2f8b9
4 changed files with 3 additions and 4 deletions

View file

@ -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) {