From ebdc212afbd81f66fbbd966b5fb460819e002318 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 27 Nov 2024 19:26:25 +0900 Subject: [PATCH] Update std.js --- lib/std.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std.js b/lib/std.js index 17a6c5e..5dc5d5d 100644 --- a/lib/std.js +++ b/lib/std.js @@ -26,12 +26,12 @@ if (!Function.prototype.GetResource) { // https://github.com/joncasey/modern-hta/blob/master/src/element-closest.js if (Element && Element.prototype) { if (!Element.prototype.matches) { - Element.prototype.matches = Element.prototype.msMatchesSelector + Element.prototype.matches = Element.prototype.msMatchesSelector; } if (!Element.prototype.closest) { for (var p = this; p != null; p = p.parentElement) { - if (p.matches(selector)) return p + if (p.matches(selector)) return p; } } }