refactor(di/injector): fixes typo in InjectorStrategy interface

Closes #3269
This commit is contained in:
Pascal Precht 2015-07-24 16:14:24 +02:00 committed by Tobias Bosch
parent 2577f5eebf
commit bc21aa0124
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);