match broadcast numbers with event hat blocks containing strings that
can be parsed as numbers
pull/3/merge
jmoenig 2014-09-30 09:26:50 +02:00
rodzic dc3b849d31
commit 29b47cc2d2
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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) {