refactor(di/injector): fixes typo in InjectorStrategy interface
Closes #3269
This commit is contained in:
parent
2577f5eebf
commit
bc21aa0124
|
@ -868,7 +868,7 @@ class ElementInjectorInlineStrategy implements _ElementInjectorStrategy {
|
||||||
hydrate(): void {
|
hydrate(): void {
|
||||||
var i = this.injectorStrategy;
|
var i = this.injectorStrategy;
|
||||||
var p = i.protoStrategy;
|
var p = i.protoStrategy;
|
||||||
i.resetContructionCounter();
|
i.resetConstructionCounter();
|
||||||
|
|
||||||
if (p.binding0 instanceof DirectiveBinding && isPresent(p.keyId0) && i.obj0 === undefinedValue)
|
if (p.binding0 instanceof DirectiveBinding && isPresent(p.keyId0) && i.obj0 === undefinedValue)
|
||||||
i.obj0 = i.instantiateBinding(p.binding0, p.visibility0);
|
i.obj0 = i.instantiateBinding(p.binding0, p.visibility0);
|
||||||
|
|
|
@ -193,7 +193,7 @@ export interface InjectorStrategy {
|
||||||
getMaxNumberOfObjects(): number;
|
getMaxNumberOfObjects(): number;
|
||||||
|
|
||||||
attach(parent: Injector, isBoundary: boolean): void;
|
attach(parent: Injector, isBoundary: boolean): void;
|
||||||
resetContructionCounter(): void;
|
resetConstructionCounter(): void;
|
||||||
instantiateBinding(binding: ResolvedBinding, visibility: number): any;
|
instantiateBinding(binding: ResolvedBinding, visibility: number): any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ export class InjectorInlineStrategy implements InjectorStrategy {
|
||||||
|
|
||||||
constructor(public injector: Injector, public protoStrategy: ProtoInjectorInlineStrategy) {}
|
constructor(public injector: Injector, public protoStrategy: ProtoInjectorInlineStrategy) {}
|
||||||
|
|
||||||
resetContructionCounter(): void { this.injector._constructionCounter = 0; }
|
resetConstructionCounter(): void { this.injector._constructionCounter = 0; }
|
||||||
|
|
||||||
instantiateBinding(binding: ResolvedBinding, visibility: number): any {
|
instantiateBinding(binding: ResolvedBinding, visibility: number): any {
|
||||||
return this.injector._new(binding, visibility);
|
return this.injector._new(binding, visibility);
|
||||||
|
@ -317,7 +317,7 @@ export class InjectorDynamicStrategy implements InjectorStrategy {
|
||||||
ListWrapper.fill(this.objs, undefinedValue);
|
ListWrapper.fill(this.objs, undefinedValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
resetContructionCounter(): void { this.injector._constructionCounter = 0; }
|
resetConstructionCounter(): void { this.injector._constructionCounter = 0; }
|
||||||
|
|
||||||
instantiateBinding(binding: ResolvedBinding, visibility: number): any {
|
instantiateBinding(binding: ResolvedBinding, visibility: number): any {
|
||||||
return this.injector._new(binding, visibility);
|
return this.injector._new(binding, visibility);
|
||||||
|
|
Loading…
Reference in New Issue