feat: add keyValDiff to default pipes

This commit is contained in:
Pawel Kozlowski 2015-02-24 17:39:44 +01:00 committed by vsavkin
parent 4a5d53c549
commit 85abfa943d
1 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,7 @@ import {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector}
from './src/change_detection/proto_change_detector'; from './src/change_detection/proto_change_detector';
import {PipeRegistry} from './src/change_detection/pipes/pipe_registry'; import {PipeRegistry} from './src/change_detection/pipes/pipe_registry';
import {ArrayChangesFactory} from './src/change_detection/pipes/array_changes'; import {ArrayChangesFactory} from './src/change_detection/pipes/array_changes';
import {KeyValueChangesFactory} from './src/change_detection/pipes/keyvalue_changes';
import {NullPipeFactory} from './src/change_detection/pipes/null_pipe'; import {NullPipeFactory} from './src/change_detection/pipes/null_pipe';
export class ChangeDetection { export class ChangeDetection {
@ -32,6 +33,10 @@ export var defaultPipes = {
"iterableDiff" : [ "iterableDiff" : [
new ArrayChangesFactory(), new ArrayChangesFactory(),
new NullPipeFactory() new NullPipeFactory()
],
"keyValDiff" : [
new KeyValueChangesFactory(),
new NullPipeFactory()
] ]
}; };
@ -64,4 +69,4 @@ export class JitChangeDetection extends ChangeDetection {
var _registry = new PipeRegistry(defaultPipes); var _registry = new PipeRegistry(defaultPipes);
export var dynamicChangeDetection = new DynamicChangeDetection(_registry); export var dynamicChangeDetection = new DynamicChangeDetection(_registry);
export var jitChangeDetection = new JitChangeDetection(_registry); export var jitChangeDetection = new JitChangeDetection(_registry);