@@ -4,7 +4,7 @@ import {Locals} from 'angular2/src/change_detection/parser/locals';
44
55import { AbstractChangeDetector } from './abstract_change_detector' ;
66import { BindingRecord } from './binding_record' ;
7- import { PipeRegistry } from './pipes/pipes' ;
7+ import { Pipes } from './pipes/pipes' ;
88import { ChangeDetectionUtil , SimpleChange , uninitialized } from './change_detection_util' ;
99
1010
@@ -14,51 +14,51 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
1414 locals : Locals = null ;
1515 values : List < any > ;
1616 changes : List < any > ;
17- pipes : List < any > ;
17+ localPipes : List < any > ;
1818 prevContexts : List < any > ;
1919 directives : any = null ;
2020 alreadyChecked : boolean = false ;
21- private pipeRegistry : PipeRegistry = null ;
21+ private pipes : Pipes = null ;
2222
2323 constructor ( id : string , private changeControlStrategy : string , private dispatcher : any ,
2424 private protos : List < ProtoRecord > , private directiveRecords : List < any > ) {
2525 super ( id ) ;
2626 this . values = ListWrapper . createFixedSize ( protos . length + 1 ) ;
27- this . pipes = ListWrapper . createFixedSize ( protos . length + 1 ) ;
27+ this . localPipes = ListWrapper . createFixedSize ( protos . length + 1 ) ;
2828 this . prevContexts = ListWrapper . createFixedSize ( protos . length + 1 ) ;
2929 this . changes = ListWrapper . createFixedSize ( protos . length + 1 ) ;
3030
3131 this . values [ 0 ] = null ;
3232 ListWrapper . fill ( this . values , uninitialized , 1 ) ;
33- ListWrapper . fill ( this . pipes , null ) ;
33+ ListWrapper . fill ( this . localPipes , null ) ;
3434 ListWrapper . fill ( this . prevContexts , uninitialized ) ;
3535 ListWrapper . fill ( this . changes , false ) ;
3636 }
3737
38- hydrate ( context : any , locals : Locals , directives : any , pipeRegistry : PipeRegistry ) : void {
38+ hydrate ( context : any , locals : Locals , directives : any , pipes : Pipes ) : void {
3939 this . mode = ChangeDetectionUtil . changeDetectionMode ( this . changeControlStrategy ) ;
4040 this . values [ 0 ] = context ;
4141 this . locals = locals ;
4242 this . directives = directives ;
4343 this . alreadyChecked = false ;
44- this . pipeRegistry = pipeRegistry ;
44+ this . pipes = pipes ;
4545 }
4646
4747 dehydrate ( ) {
4848 this . _destroyPipes ( ) ;
4949 this . values [ 0 ] = null ;
5050 ListWrapper . fill ( this . values , uninitialized , 1 ) ;
5151 ListWrapper . fill ( this . changes , false ) ;
52- ListWrapper . fill ( this . pipes , null ) ;
52+ ListWrapper . fill ( this . localPipes , null ) ;
5353 ListWrapper . fill ( this . prevContexts , uninitialized ) ;
5454 this . locals = null ;
55- this . pipeRegistry = null ;
55+ this . pipes = null ;
5656 }
5757
5858 _destroyPipes ( ) {
59- for ( var i = 0 ; i < this . pipes . length ; ++ i ) {
60- if ( isPresent ( this . pipes [ i ] ) ) {
61- this . pipes [ i ] . onDestroy ( ) ;
59+ for ( var i = 0 ; i < this . localPipes . length ; ++ i ) {
60+ if ( isPresent ( this . localPipes [ i ] ) ) {
61+ this . localPipes [ i ] . onDestroy ( ) ;
6262 }
6363 }
6464 }
@@ -270,7 +270,7 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
270270 if ( isPresent ( storedPipe ) ) {
271271 storedPipe . onDestroy ( ) ;
272272 }
273- var pipe = this . pipeRegistry . get ( proto . name , context , this . ref ) ;
273+ var pipe = this . pipes . get ( proto . name , context , this . ref ) ;
274274 this . _writePipe ( proto , pipe ) ;
275275 return pipe ;
276276 }
@@ -289,9 +289,9 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
289289
290290 _writeSelf ( proto : ProtoRecord , value ) { this . values [ proto . selfIndex ] = value ; }
291291
292- _readPipe ( proto : ProtoRecord ) { return this . pipes [ proto . selfIndex ] ; }
292+ _readPipe ( proto : ProtoRecord ) { return this . localPipes [ proto . selfIndex ] ; }
293293
294- _writePipe ( proto : ProtoRecord , value ) { this . pipes [ proto . selfIndex ] = value ; }
294+ _writePipe ( proto : ProtoRecord , value ) { this . localPipes [ proto . selfIndex ] = value ; }
295295
296296 _setChanged ( proto : ProtoRecord , value : boolean ) { this . changes [ proto . selfIndex ] = value ; }
297297
0 commit comments