summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-13 20:53:41 -0500
committerGitHub <noreply@github.com>2020-11-13 20:53:41 -0500
commitd0f364bad8621c51753c786f97ccb0cba768e298 (patch)
tree9cc491b1d147f99458c51d2f854e8eee36bcb42b /ext/mixed
parentd62d353958c213c5c073973a062fbb2e3770f024 (diff)
Fix _areSame check not using correct array count property (#1026)
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 92020b51..d52fe576 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -1498,7 +1498,7 @@ class Display extends EventDispatcher {
}
_areSame(set, array) {
- if (set.size !== array.size) { return false; }
+ if (set.size !== array.length) { return false; }
for (const value of array) {
if (!set.has(value)) {
return false;