(mutation: NodeMutation)
| 284 | } |
| 285 | |
| 286 | fireMutation(mutation: NodeMutation) { |
| 287 | this.mutationObservers.forEach((observer: NodeObserver) => { |
| 288 | observer.handleNodeMutation(mutation) |
| 289 | }) |
| 290 | // Only fire global mutations for specific kinds (not annotation/labels) |
| 291 | if (mutation.type === NodeMutationType.SET_VALIDITY || mutation.type === NodeMutationType.SET_PROPERTY) { |
| 292 | globalMutationDispatcher.handleNodeMutation(mutation) |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | registerObserver(observer: NodeObserver) { |
| 297 | this.mutationObservers.push(observer) |
no test coverage detected