OLD | NEW |
(Empty) | |
| 1 >>> |
| 2 var defaultPipes = { |
| 3 "iterableDiff": [new IterableChangesFactory(), new NullPipeFactory()], |
| 4 "keyValDiff": [new KeyValueChangesFactory(), new NullPipeFactory()] |
| 5 }; /** |
| 6 * @exportedAs angular2/change_detection |
| 7 */ |
| 8 class DynamicChangeDetection extends ChangeDetection { |
| 9 PipeRegistry registry; |
| 10 DynamicChangeDetection(PipeRegistry registry) : super() { |
| 11 /* super call moved to initializer */; |
| 12 this.registry = registry; |
| 13 } |
| 14 ProtoChangeDetector createProtoChangeDetector(String name, |
| 15 [String changeControlStrategy = DEFAULT]) { |
| 16 return new DynamicProtoChangeDetector(this.registry, changeControlStrategy); |
| 17 } |
| 18 } /** |
| 19 * @exportedAs angular2/change_detection |
| 20 */ |
| 21 class JitChangeDetection extends ChangeDetection { |
| 22 PipeRegistry registry; |
| 23 JitChangeDetection(PipeRegistry registry) : super() { |
| 24 /* super call moved to initializer */; |
| 25 this.registry = registry; |
| 26 } |
| 27 ProtoChangeDetector createProtoChangeDetector(String name, |
| 28 [String changeControlStrategy = DEFAULT]) { |
| 29 return new JitProtoChangeDetector(this.registry, changeControlStrategy); |
| 30 } |
| 31 } |
| 32 <<< |
| 33 var defaultPipes = { |
| 34 "iterableDiff": [new IterableChangesFactory(), new NullPipeFactory()], |
| 35 "keyValDiff": [new KeyValueChangesFactory(), new NullPipeFactory()] |
| 36 }; |
| 37 |
| 38 /** |
| 39 * @exportedAs angular2/change_detection |
| 40 */ |
| 41 class DynamicChangeDetection extends ChangeDetection { |
| 42 PipeRegistry registry; |
| 43 DynamicChangeDetection(PipeRegistry registry) : super() { |
| 44 /* super call moved to initializer */; |
| 45 this.registry = registry; |
| 46 } |
| 47 ProtoChangeDetector createProtoChangeDetector(String name, |
| 48 [String changeControlStrategy = DEFAULT]) { |
| 49 return new DynamicProtoChangeDetector(this.registry, changeControlStrategy); |
| 50 } |
| 51 } |
| 52 |
| 53 /** |
| 54 * @exportedAs angular2/change_detection |
| 55 */ |
| 56 class JitChangeDetection extends ChangeDetection { |
| 57 PipeRegistry registry; |
| 58 JitChangeDetection(PipeRegistry registry) : super() { |
| 59 /* super call moved to initializer */; |
| 60 this.registry = registry; |
| 61 } |
| 62 ProtoChangeDetector createProtoChangeDetector(String name, |
| 63 [String changeControlStrategy = DEFAULT]) { |
| 64 return new JitProtoChangeDetector(this.registry, changeControlStrategy); |
| 65 } |
| 66 } |
OLD | NEW |