(changed: ComponentChanged)
| 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 | } |