Skip to content

Commit 441ca38

Browse files
committed
Swap for isArray check
1 parent 054ceaf commit 441ca38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cameras/2d/Camera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ var Camera = new Class({
958958
*/
959959
ignore: function (gameObjectOrArray)
960960
{
961-
if (gameObjectOrArray instanceof Array)
961+
if (Array.isArray(gameObjectOrArray))
962962
{
963963
for (var index = 0; index < gameObjectOrArray.length; ++index)
964964
{

0 commit comments

Comments
 (0)