(ctrl: Controller, ref?: SpringRef)
| 213 | |
| 214 | /** Detach `ctrl` from `ctrl.ref` and (optionally) the given `ref` */ |
| 215 | export function detachRefs(ctrl: Controller, ref?: SpringRef) { |
| 216 | ctrl.ref?.delete(ctrl) |
| 217 | ref?.delete(ctrl) |
| 218 | } |
| 219 | |
| 220 | /** Replace `ctrl.ref` with the given `ref` (if defined) */ |
| 221 | export function replaceRef(ctrl: Controller, ref?: SpringRef) { |
no test coverage detected
searching dependent graphs…