@@ -121,7 +121,7 @@ function initWatch (vm) {
for (let key in watch) {
let handler = watch[key]
let options
- if (typeof handler === 'object') {
+ if (isPlainObject(handler)) {
options = handler
handler = handler.handler
}
@@ -306,7 +306,7 @@ export function mergeOptions (parent, child, vm) {
mergeField(key)
for (key in child) {
- if (!hasOwn(parent, key)) {
+ if (!(key in parent)) {