From c53a06849e7f01af2ee82c547dbb5d9aef742b50 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Tue, 25 Feb 2014 05:20:19 +0000 Subject: [PATCH] Stop Group.callAll splitting empty strings. --- src/core/Group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Group.js b/src/core/Group.js index 87ae200c..47afdd89 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -680,7 +680,7 @@ Phaser.Group.prototype.callAll = function (method, context) { var methodLength = method.length; - if (typeof context === 'undefined') + if (typeof context === 'undefined' || context === null || context === '') { context = null; }