From 5d5fc20a6d3d3af70155f645c44ba5b7d40bdf60 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 12 Nov 2013 12:01:26 +0100 Subject: fixed wrong NaN display for variable watchers Thanks, Brian, for catching this glitch! --- objects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index 7eb7eb6..c0c99e9 100644 --- a/objects.js +++ b/objects.js @@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2013-October-14'; +modules.objects = '2013-November-12'; var SpriteMorph; var StageMorph; @@ -6030,7 +6030,7 @@ WatcherMorph.prototype.update = function () { } else { newValue = this.target[this.getter](); } - num = parseFloat(newValue); + num = +newValue; if (!isNaN(num)) { newValue = Math.round(newValue * 1000000000) / 1000000000; } -- cgit v1.3.1