Stop Group.callAll splitting empty strings.

This commit is contained in:
photonstorm
2014-02-25 05:20:19 +00:00
parent a24d252430
commit c53a06849e
+1 -1
View File
@@ -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;
}