Fix _areSame check not using correct array count property (#1026)

This commit is contained in:
toasted-nutbread 2020-11-13 20:53:41 -05:00 committed by GitHub
parent d62d353958
commit d0f364bad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;