summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhistory.txt1
-rw-r--r--objects.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/history.txt b/history.txt
index 040ac32..8d69104 100755
--- a/history.txt
+++ b/history.txt
@@ -1999,3 +1999,4 @@ ______
* Blocks, BYOB, Store: „read-only“ option for editable custom block input slots
* BYOB, Blocks: custom block input slots reverting to default now show their default value
* Blocks: fixed read-only input slot coloring glitch, thanks Bernat, for reporting it!
+* Objects: fixed #231 (watcher-display of Booleans)
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) {