Skip to content

Commit bc02b98

Browse files
authored
#10 Backwards compatibility w/ GS 3.22
1 parent ef473e3 commit bc02b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ function _recursiveApplyInternal(actor, depth)
7474
}
7575

7676
// Check actor immediate children before using recursion
77-
if (children.map(child => _apply(child)).includes(true))
77+
if (children.map(child => _apply(child)).indexOf(true) >= 0)
7878
{
7979
return true;
8080
}
8181

8282
// Check children recursively
8383
if (depth < MAX_RECURSE_DEPTH)
8484
{
85-
if (children.map(child => _recursiveApplyInternal(child, depth +1)).includes(true))
85+
if (children.map(child => _recursiveApplyInternal(child, depth +1)).indexOf(true) >= 0)
8686
{
8787
return true;
8888
}

0 commit comments

Comments
 (0)