refactor(change_detection): renamed BindingPropagationConfig to ChangeDetectorRef

This commit is contained in:
vsavkin
2015-04-14 07:47:12 -07:00
parent 213dabdceb
commit 8c1adabe1c
17 changed files with 89 additions and 73 deletions

View File

@ -21,7 +21,7 @@ export class IterableChangesFactory {
return IterableChanges.supportsObj(obj);
}
create(bpc):Pipe {
create(cdRef):Pipe {
return new IterableChanges();
}
}

View File

@ -11,7 +11,7 @@ export class KeyValueChangesFactory {
return KeyValueChanges.supportsObj(obj);
}
create(bpc):Pipe {
create(cdRef):Pipe {
return new KeyValueChanges();
}
}

View File

@ -9,7 +9,7 @@ export class NullPipeFactory {
return NullPipe.supportsObj(obj);
}
create(bpc):Pipe {
create(cdRef):Pipe {
return new NullPipe();
}
}

View File

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