mirror of
https://github.com/wassname/phaser.git
synced 2026-07-08 00:10:32 +08:00
Stop Group.callAll splitting empty strings.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user