Fix _areSame check not using correct array count property (#1026)
This commit is contained in:
parent
d62d353958
commit
d0f364bad8
@ -1498,7 +1498,7 @@ class Display extends EventDispatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_areSame(set, array) {
|
_areSame(set, array) {
|
||||||
if (set.size !== array.size) { return false; }
|
if (set.size !== array.length) { return false; }
|
||||||
for (const value of array) {
|
for (const value of array) {
|
||||||
if (!set.has(value)) {
|
if (!set.has(value)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user