diff --git a/src/cameras/2d/Camera.js b/src/cameras/2d/Camera.js index a60d2e835..bc3b118cb 100644 --- a/src/cameras/2d/Camera.js +++ b/src/cameras/2d/Camera.js @@ -958,7 +958,7 @@ var Camera = new Class({ */ ignore: function (gameObjectOrArray) { - if (gameObjectOrArray instanceof Array) + if (Array.isArray(gameObjectOrArray)) { for (var index = 0; index < gameObjectOrArray.length; ++index) {