diff options
| author | jmoenig <jens@moenig.org> | 2013-11-12 12:01:26 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-12 12:01:26 +0100 |
| commit | 5d5fc20a6d3d3af70155f645c44ba5b7d40bdf60 (patch) | |
| tree | a441409dd47b8da9136b157685d26d7387730286 | |
| parent | 651f44ebdfe3c6ff33f9135b23b971293a211dbc (diff) | |
| download | snap-yow-5d5fc20a6d3d3af70155f645c44ba5b7d40bdf60.tar.gz snap-yow-5d5fc20a6d3d3af70155f645c44ba5b7d40bdf60.zip | |
fixed wrong NaN display for variable watchers
Thanks, Brian, for catching this glitch!
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | objects.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/history.txt b/history.txt index 8bc9b1c..375739d 100755 --- a/history.txt +++ b/history.txt @@ -1990,3 +1990,4 @@ ______ 131112 ------ * Blocks, BYOB, Store: customizable drop-down menus for input slots +* Objects: fixed wrong NaN display for variable watchers @@ -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; } |
