mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 15:24:09 +00:00
explicit this binding
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user