Skip to content

Commit b33f820

Browse files
committed
explicit this binding
1 parent a7a4448 commit b33f820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/litegraph/src/LGraph.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,8 @@ export class LGraph
780780
node[eventname]()
781781
} else if (params && params.constructor === Array) {
782782
// @ts-expect-error deprecated
783-
node[eventname](...params)
783+
// eslint-disable-next-line prefer-spread
784+
node[eventname].apply(node, params)
784785
} else {
785786
// @ts-expect-error deprecated
786787
node[eventname](params)

0 commit comments

Comments
 (0)