Skip to content

Commit 52c535b

Browse files
author
Evan You
committed
return event handler return value
1 parent 423b54d commit 52c535b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/directives/on.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ module.exports = {
2121
this.handler = function (e) {
2222
e.targetVM = vm
2323
context.$event = e
24-
handler.call(context, e)
24+
var res = handler.call(context, e)
2525
context.$event = null
26+
return res
2627
}
2728
this.el.addEventListener(this.arg, this.handler)
2829
},

0 commit comments

Comments
 (0)