fix(ivy): named listener method for easier debugging. (#23168)

PR Close #23168
This commit is contained in:
Miško Hevery 2018-04-03 11:25:13 -07:00 committed by Igor Minar
parent 720031b5f6
commit 9a2479d423
1 changed files with 1 additions and 1 deletions

View File

@ -1787,7 +1787,7 @@ export function wrapListenerWithDirtyLogic(view: LView, listenerFn: (e?: any) =>
*/
export function wrapListenerWithDirtyAndDefault(
view: LView, listenerFn: (e?: any) => any): EventListener {
return function(e: Event) {
return function wrapListenerIn_markViewDirty(e: Event) {
markViewDirty(view);
if (listenerFn(e) === false) {
e.preventDefault();