diff options
| author | jmoenig <jens@moenig.org> | 2013-11-15 14:57:14 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-15 14:57:14 +0100 |
| commit | 6cc86fa7515379571928674b7fe29e6b25acf596 (patch) | |
| tree | 8b67542ade63ee7ab12ba0d47d8b05489b916e04 /objects.js | |
| parent | 17508d275ab3917dfe335afbbeff32090c090ea4 (diff) | |
| download | snap-yow-6cc86fa7515379571928674b7fe29e6b25acf596.tar.gz snap-yow-6cc86fa7515379571928674b7fe29e6b25acf596.zip | |
fixed #231 (watcher-display of Booleans)
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
