Skip to content

Commit 3aa8f88

Browse files
committed
fix #652 events/watch merging
1 parent 614b368 commit 3aa8f88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/merge-option.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ strats.events = function (parentVal, childVal) {
170170
for (var key in childVal) {
171171
var parent = ret[key]
172172
var child = childVal[key]
173+
if (!_.isArray(parent)) {
174+
parent = [parent]
175+
}
173176
ret[key] = parent
174177
? parent.concat(child)
175178
: [child]

0 commit comments

Comments
 (0)