fix(change_detection): allow to destroy OnPush components inside of a host event.

Closes #7192
This commit is contained in:
Tobias Bosch
2016-02-17 12:12:10 -08:00
parent 331b9c1317
commit ebd438ff5e
4 changed files with 39 additions and 3 deletions

View File

@ -253,7 +253,7 @@ class _CodegenState {
var evalRecord = _logic.genEventBindingEvalValue(eb, r);
var markPath = _genMarkPathToRootAsCheckOnce(r);
var prevDefault = _genUpdatePreventDefault(eb, r);
return "${evalRecord}\n${markPath}\n${prevDefault}";
return "${markPath}\n${evalRecord}\n${prevDefault}";
} else {
return _logic.genEventBindingEvalValue(eb, r);
}