Browse Source

fix multiple events

dev
Evan You 9 years ago
parent
commit
93978f8469
  1. 9
      src/runtime/vdom/modules/events.js

9
src/runtime/vdom/modules/events.js

@ -1,9 +1,8 @@
function arrInvoker (arr) { function arrInvoker (arr) {
return function () { return function (ev) {
// Special case when length is two, for performance for (let i = 0; i < arr.length; i++) {
arr.length === 2 arr[i](ev)
? arr[0](arr[1]) }
: arr[0].apply(undefined, arr.slice(1))
} }
} }

Loading…
Cancel
Save