(sourceId)
| 134 | } |
| 135 | |
| 136 | removeSource(sourceId) { |
| 137 | invariant(this.getSource(sourceId), 'Expected an existing source.'); |
| 138 | this.store.dispatch(removeSource(sourceId)); |
| 139 | |
| 140 | asap(() => { |
| 141 | delete this.handlers[sourceId]; |
| 142 | delete this.types[sourceId]; |
| 143 | }); |
| 144 | } |
| 145 | |
| 146 | removeTarget(targetId) { |
| 147 | invariant(this.getTarget(targetId), 'Expected an existing target.'); |
no test coverage detected