(unit: CommonUnit)
| 317 | return on(store, '.on', nodeSet, fn, errorTitle) |
| 318 | }, |
| 319 | off(unit: CommonUnit) { |
| 320 | const triggerUnitId = getGraph(unit).id |
| 321 | const oldLink = getGraph(store).family.links.find( |
| 322 | e => e.meta.onTrigger === triggerUnitId, |
| 323 | ) |
| 324 | if (oldLink) { |
| 325 | clearNode(oldLink) |
| 326 | } |
| 327 | return store |
| 328 | }, |
| 329 | map(fn: (value: any) => any, outerConfig: Config) { |
| 330 | let mapConfig: Config | undefined |
| 331 | if (isObject(fn)) { |