(callback: () => void)
| 561 | } |
| 562 | |
| 563 | private removeOnDestroy(callback: () => void): void { |
| 564 | const destroyCBIdx = this._onDestroyHooks.indexOf(callback); |
| 565 | if (destroyCBIdx !== -1) { |
| 566 | this._onDestroyHooks.splice(destroyCBIdx, 1); |
| 567 | } |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | function injectableDefOrInjectorDefFactory(token: ProviderToken<any>): FactoryFn<any> { |