Skip to content

Commit

Permalink
fix: multiple merged vnode hooks not invoked properly
Browse files Browse the repository at this point in the history
fix #6076
  • Loading branch information
yyx990803 committed Jul 12, 2017
1 parent 6bf9772 commit 91deb4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/vdom/helpers/update-listeners.js
Expand Up @@ -27,8 +27,9 @@ export function createFnInvoker (fns: Function | Array<Function>): Function {
function invoker () {
const fns = invoker.fns
if (Array.isArray(fns)) {
for (let i = 0; i < fns.length; i++) {
fns[i].apply(null, arguments)
const cloned = fns.slice()
for (let i = 0; i < cloned.length; i++) {
cloned[i].apply(null, arguments)
}
} else {
// return handler return value for single handlers
Expand Down

0 comments on commit 91deb4f

Please sign in to comment.