MCPcopy Index your code
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / invokeCallback

Function invokeCallback

web/js/common/binding.js:161–174  ·  view source on GitHub ↗
(callback, state)

Source from the content-addressed store, hash-verified

159};
160
161async function invokeCallback(callback, state) {
162 if (callback.type in callbacks) {
163 // @ts-ignore
164 await callbacks[callback.type](callback, state);
165 } else {
166 console.warn(
167 "%c[🐍 pysssss]",
168 "color: limegreen",
169 `[binding ${state.$node.comfyClass}.${state.$this.name}]`,
170 "unsupported binding callback type:",
171 callback.type
172 );
173 }
174}
175
176app.registerExtension({
177 name: "pysssss.Binding",

Callers 3

ifFunction · 0.85
fetchFunction · 0.85
valueChangedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected