Skip to content

Commit

Permalink
fix: handle arrays in v-on object syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 13, 2017
1 parent dc1bca1 commit 086e6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/instance/render-helpers/bind-object-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function bindObjectListeners (data: any, value: any): VNodeData {
for (const key in value) {
const existing = on[key]
const ours = value[key]
on[key] = existing ? [ours].concat(existing) : ours
on[key] = existing ? [].concat(ours, existing) : ours
}
}
}
Expand Down

0 comments on commit 086e6d9

Please sign in to comment.