From e787185e363c3d14a49f3920b75c5b7bd9ff9514 Mon Sep 17 00:00:00 2001 From: Ibrahim Tanyalcin <8837895+IbrahimTanyalcin@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:19:47 +0000 Subject: [PATCH] optional chanining for throttle --- collections/DOM/ch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collections/DOM/ch.js b/collections/DOM/ch.js index 748e9df..042d676 100644 --- a/collections/DOM/ch.js +++ b/collections/DOM/ch.js @@ -677,7 +677,7 @@ const ch = new Cahir({ thisArg = thisArg ?? that; if (resolver) { timeout = setTimeout(() => { - resolver(f.apply(thisArg, args)); + resolver?.(f.apply(thisArg, args)); resolver = prom = null; }, delay); return prom;