From b33f820b3b964e3b3bd6b623f47527bc15451ecf Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 5 Aug 2025 18:37:19 -0400 Subject: [PATCH] explicit this binding --- src/lib/litegraph/src/LGraph.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/litegraph/src/LGraph.ts b/src/lib/litegraph/src/LGraph.ts index 06fa9842e..1aba5881e 100644 --- a/src/lib/litegraph/src/LGraph.ts +++ b/src/lib/litegraph/src/LGraph.ts @@ -780,7 +780,8 @@ export class LGraph node[eventname]() } else if (params && params.constructor === Array) { // @ts-expect-error deprecated - node[eventname](...params) + // eslint-disable-next-line prefer-spread + node[eventname].apply(node, params) } else { // @ts-expect-error deprecated node[eventname](params)