refactor(change_detection): generate handleEvent only when necessary

This commit is contained in:
vsavkin
2015-08-16 18:29:43 -07:00
committed by Victor Savkin
parent 6c9e712c34
commit 823fa4689e
6 changed files with 42 additions and 25 deletions
@@ -899,6 +899,7 @@ export function main() {
res = val.changeDetector.handleEvent("event", 0, locals);
expect(res).toBe(false);
});
});
});
});
@@ -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;