aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils/elements.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/utils/elements.js')
-rw-r--r--src/js/utils/elements.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils/elements.js b/src/js/utils/elements.js
index b88aad0c..43f46416 100644
--- a/src/js/utils/elements.js
+++ b/src/js/utils/elements.js
@@ -221,7 +221,7 @@ export function hasClass(element, className) {
// Element matches selector
export function matches(element, selector) {
- const prototype = { Element };
+ const prototype = Element.prototype;
function match() {
return Array.from(document.querySelectorAll(selector)).includes(this);