MCPcopy Create free account
hub / github.com/eva-engine/eva.js / remove

Method remove

packages/plugin-evax/lib/EvaXSystem.ts:149–156  ·  view source on GitHub ↗
(changed: ComponentChanged)

Source from the content-addressed store, hash-verified

147 }
148 }
149 remove(changed: ComponentChanged) {
150 const component = changed.component as EvaXComponent;
151 for (const key in component.events) {
152 if (component.events[key] instanceof Function) {
153 this.ee.off(key, component.events[key].bind(component));
154 }
155 }
156 }
157 on(eventName, func) {
158 return this.ee.on(eventName, func, this);
159 }

Callers 1

updateMethod · 0.95

Calls 1

offMethod · 0.80

Tested by

no test coverage detected