refactor(animations): defer the noop engine's event deregistration

This commit is contained in:
Matias Niemelä
2017-02-23 09:41:00 -08:00
committed by Igor Minar
parent 4301dce7b0
commit 36b78e9502
4 changed files with 96 additions and 30 deletions

View File

@ -162,9 +162,6 @@ function debugSetCurrentNode(view: ViewData, nodeIndex: number) {
}
function debugHandleEvent(view: ViewData, nodeIndex: number, eventName: string, event: any) {
if (view.state & ViewState.Destroyed) {
throw viewDestroyedError(DebugAction[_currentAction]);
}
debugSetCurrentNode(view, nodeIndex);
return callWithDebugContext(
DebugAction.handleEvent, view.def.handleEvent, null, [view, nodeIndex, eventName, event]);