Swap for isArray check

This commit is contained in:
Richard Davey 2018-04-05 09:23:52 +01:00
parent 054ceafae0
commit 441ca3862c

View file

@ -958,7 +958,7 @@ var Camera = new Class({
*/ */
ignore: function (gameObjectOrArray) ignore: function (gameObjectOrArray)
{ {
if (gameObjectOrArray instanceof Array) if (Array.isArray(gameObjectOrArray))
{ {
for (var index = 0; index < gameObjectOrArray.length; ++index) for (var index = 0; index < gameObjectOrArray.length; ++index)
{ {