Skip to content

Commit c53a068

Browse files
committed
Stop Group.callAll splitting empty strings.
1 parent a24d252 commit c53a068

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/Group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ Phaser.Group.prototype.callAll = function (method, context) {
680680

681681
var methodLength = method.length;
682682

683-
if (typeof context === 'undefined')
683+
if (typeof context === 'undefined' || context === null || context === '')
684684
{
685685
context = null;
686686
}

0 commit comments

Comments
 (0)