Skip to content

Commit

Permalink
fix vuejs#652 events/watch merging
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 23, 2014
1 parent 614b368 commit 3aa8f88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/merge-option.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ strats.events = function (parentVal, childVal) {
for (var key in childVal) {
var parent = ret[key]
var child = childVal[key]
if (!_.isArray(parent)) {
parent = [parent]
}
ret[key] = parent
? parent.concat(child)
: [child]
Expand Down

0 comments on commit 3aa8f88

Please sign in to comment.