refactor(change_detection): generate handleEvent only when necessary
This commit is contained in:
@@ -899,6 +899,7 @@ export function main() {
|
||||
res = val.changeDetector.handleEvent("event", 0, locals);
|
||||
expect(res).toBe(false);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
-5
@@ -36,11 +36,6 @@ class _MyComponent_ChangeDetector0
|
||||
dehydrateDirectives(false);
|
||||
}
|
||||
|
||||
bool handleEvent(eventName, elIndex, locals) {
|
||||
var preventDefault = false;
|
||||
return preventDefault;
|
||||
}
|
||||
|
||||
void detectChangesInRecordsInternal(throwOnChange) {
|
||||
var l_context = this.context, l_myNum0, c_myNum0, l_interpolate1;
|
||||
c_myNum0 = false;
|
||||
|
||||
Reference in New Issue
Block a user