MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / constructor

Method constructor

client_dist/ganclient.js:406–409  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

404 */
405class SimpleEventHandler {
406 constructor(element) {
407 this.element = element;
408 this.eventListeners = [];
409 }
410 bind(eventNames, eventFunction) {
411 for (const eventName of eventNames.split(' ')) {
412 this.eventListeners.push({ eventName, eventFunction });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected