From 29b47cc2d2ebb87eec7a40313992181d5e99c95d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 30 Sep 2014 09:26:50 +0200 Subject: fixed #593 match broadcast numbers with event hat blocks containing strings that can be parsed as numbers --- history.txt | 4 ++++ objects.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/history.txt b/history.txt index ec1b9cb..7c61c63 100755 --- a/history.txt +++ b/history.txt @@ -2282,3 +2282,7 @@ ______ * Portuguese translation update, thanks, Manuel! * fixed #590 (Russian translation syntax glitches) Thanks @alexf2000 ! * Paint: flood fill issue fixed, thanks, Kartik! + +140930 +------ +* Objects: fixed #593 match broadcast numbers with event hat blocks containing strings that can be parsed as numbers diff --git a/objects.js b/objects.js index 2ed20f2..a36cfae 100644 --- a/objects.js +++ b/objects.js @@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2014-September-17'; +modules.objects = '2014-September-30'; var SpriteMorph; var StageMorph; @@ -3457,6 +3457,7 @@ SpriteMorph.prototype.allMessageNames = function () { }; SpriteMorph.prototype.allHatBlocksFor = function (message) { + if (typeof message === 'number') {message = message.toString(); } return this.scripts.children.filter(function (morph) { var event; if (morph.selector) { -- cgit v1.3.1