refactor(compiler): cleanups

This commit is contained in:
Tobias Bosch
2016-11-02 07:36:31 -07:00
committed by vikerman
parent 20a4f9923f
commit 5f1dddc5d0
5 changed files with 13 additions and 12 deletions

View File

@ -56,7 +56,7 @@ export abstract class ComponentRef<C> {
/**
* The component type.
*/
get componentType(): Type<C> { return unimplemented(); }
get componentType(): Type<any> { return unimplemented(); }
/**
* Destroys the component instance and all of the data structures associated with it.
@ -80,7 +80,7 @@ export class ComponentRef_<C> extends ComponentRef<C> {
get instance(): C { return this._component; };
get hostView(): ViewRef { return this._parentView.ref; };
get changeDetectorRef(): ChangeDetectorRef { return this._parentView.ref; };
get componentType(): Type<C> { return <any>this._component.constructor; }
get componentType(): Type<any> { return <any>this._component.constructor; }
destroy(): void { this._parentView.detachAndDestroy(); }
onDestroy(callback: Function): void { this.hostView.onDestroy(callback); }

View File

@ -322,7 +322,7 @@ export class DebugAppView<T> extends AppView<T> {
}
}
injectorGet(token: any, nodeIndex: number, notFoundResult: any): any {
injectorGet(token: any, nodeIndex: number, notFoundResult?: any): any {
this._resetDebug();
try {
return super.injectorGet(token, nodeIndex, notFoundResult);