From 97946eb5235f4de966b72108c7162e3a39ffcb61 Mon Sep 17 00:00:00 2001 From: John <11955347+JohnSongSoftware@users.noreply.github.com> Date: Thu, 30 Sep 2021 23:10:53 -0400 Subject: [PATCH] checking func is null interaction process --- src/LayersTreeSearch.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/LayersTreeSearch.ts b/src/LayersTreeSearch.ts index 2c5646b..afcdc73 100644 --- a/src/LayersTreeSearch.ts +++ b/src/LayersTreeSearch.ts @@ -178,7 +178,10 @@ export class LayersTreeSearch for (let i = 0, l = q.length; i < l; i++) { - func(event, q[i], false); + if (func) + { + func(event, q[i], false); + } } q = queue[1]; for (let i = 0, l = q.length; i < l; i++)