From d0f364bad8621c51753c786f97ccb0cba768e298 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 13 Nov 2020 20:53:41 -0500 Subject: [PATCH] Fix _areSame check not using correct array count property (#1026) --- ext/mixed/js/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;