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:
Tim Blasi
2015-07-28 12:43:41 -07:00
parent d894aa9101
commit 192cf9ddf5
10 changed files with 224 additions and 199 deletions

View File

@ -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() {}
}