diff --git a/src/util/merge-option.js b/src/util/merge-option.js index 045f3af97d..864576183c 100644 --- a/src/util/merge-option.js +++ b/src/util/merge-option.js @@ -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]