refactor(change_detect): Move common fields to AbstractChangeDetector
Move fields common to Dynamic, Jit, and Pregen change detectors into the `AbstractChangeDetector` superclass to save on codegen size and reduce code duplication. Update to #3248, closes #3243
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
||||
Parser,
|
||||
ChangeDispatcher,
|
||||
ChangeDetection,
|
||||
DebugContext,
|
||||
DynamicChangeDetection,
|
||||
JitChangeDetection,
|
||||
ChangeDetectorDefinition,
|
||||
@ -380,6 +381,9 @@ class FakeDirectives {
|
||||
}
|
||||
|
||||
class DummyDispatcher implements ChangeDispatcher {
|
||||
getDebugContext(elementIndex: number, directiveIndex: DirectiveIndex): DebugContext {
|
||||
throw "getDebugContext not implemented.";
|
||||
}
|
||||
notifyOnBinding(bindingRecord, newValue) { throw "Should not be used"; }
|
||||
notifyOnAllChangesDone() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user