(ctrl: Controller, ref?: SpringRef)
| 219 | |
| 220 | /** Replace `ctrl.ref` with the given `ref` (if defined) */ |
| 221 | export function replaceRef(ctrl: Controller, ref?: SpringRef) { |
| 222 | if (ref && ctrl.ref !== ref) { |
| 223 | ctrl.ref?.delete(ctrl) |
| 224 | ref.add(ctrl) |
| 225 | ctrl.ref = ref |
| 226 | } |
| 227 | } |
no test coverage detected
searching dependent graphs…