refactor(change_detection): renamed BindingPropagationConfig to ChangeDetectorRef
This commit is contained in:
@ -21,7 +21,7 @@ export class IterableChangesFactory {
|
||||
return IterableChanges.supportsObj(obj);
|
||||
}
|
||||
|
||||
create(bpc):Pipe {
|
||||
create(cdRef):Pipe {
|
||||
return new IterableChanges();
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export class KeyValueChangesFactory {
|
||||
return KeyValueChanges.supportsObj(obj);
|
||||
}
|
||||
|
||||
create(bpc):Pipe {
|
||||
create(cdRef):Pipe {
|
||||
return new KeyValueChanges();
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ export class NullPipeFactory {
|
||||
return NullPipe.supportsObj(obj);
|
||||
}
|
||||
|
||||
create(bpc):Pipe {
|
||||
create(cdRef):Pipe {
|
||||
return new NullPipe();
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {List, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {isBlank, isPresent, BaseException, CONST} from 'angular2/src/facade/lang';
|
||||
import {Pipe} from './pipe';
|
||||
import {BindingPropagationConfig} from '../binding_propagation_config';
|
||||
import {ChangeDetectorRef} from '../change_detector_ref';
|
||||
|
||||
export class PipeRegistry {
|
||||
config;
|
||||
@ -10,7 +10,7 @@ export class PipeRegistry {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
get(type:string, obj, bpc:BindingPropagationConfig):Pipe {
|
||||
get(type:string, obj, cdRef:ChangeDetectorRef):Pipe {
|
||||
var listOfConfigs = this.config[type];
|
||||
if (isBlank(listOfConfigs)) {
|
||||
throw new BaseException(`Cannot find a pipe for type '${type}' object '${obj}'`);
|
||||
@ -23,6 +23,6 @@ export class PipeRegistry {
|
||||
throw new BaseException(`Cannot find a pipe for type '${type}' object '${obj}'`);
|
||||
}
|
||||
|
||||
return matchingConfig.create(bpc);
|
||||
return matchingConfig.create(cdRef);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user