From 6cc86fa7515379571928674b7fe29e6b25acf596 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 15 Nov 2013 14:57:14 +0100 Subject: fixed #231 (watcher-display of Booleans) --- objects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index c0c99e9..9d7e94c 100644 --- a/objects.js +++ b/objects.js @@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2013-November-12'; +modules.objects = '2013-November-15'; var SpriteMorph; var StageMorph; @@ -6031,7 +6031,7 @@ WatcherMorph.prototype.update = function () { newValue = this.target[this.getter](); } num = +newValue; - if (!isNaN(num)) { + if (typeof newValue !== 'boolean' && !isNaN(num)) { newValue = Math.round(newValue * 1000000000) / 1000000000; } if (newValue !== this.currentValue) { -- cgit v1.3.1