summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-09-30 09:26:50 +0200
committerjmoenig <jens@moenig.org>2014-09-30 09:26:50 +0200
commit29b47cc2d2ebb87eec7a40313992181d5e99c95d (patch)
tree7f7ace648fb21853c9aa8939daa5346497726186
parentdc3b849d3139c27ec4f30d9d3e37e3950e837036 (diff)
downloadsnap-29b47cc2d2ebb87eec7a40313992181d5e99c95d.tar.gz
snap-29b47cc2d2ebb87eec7a40313992181d5e99c95d.zip
fixed #593
match broadcast numbers with event hat blocks containing strings that can be parsed as numbers
-rwxr-xr-xhistory.txt4
-rw-r--r--objects.js3
2 files changed, 6 insertions, 1 deletions
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) {