From 0c6f6a01965138f8ceab9cfe124e1004ffe374c5 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Mon, 25 Jul 2016 05:07:14 +0900 Subject: [PATCH] :bug: bug(util): fixed isArray reference errors --- src/extend.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extend.js b/src/extend.js index 7294f990a..17cb7999f 100644 --- a/src/extend.js +++ b/src/extend.js @@ -11,12 +11,12 @@ import { getValue } from './path' */ export default function (Vue) { - const { isArray, isObject } = Vue.util + const { isObject } = Vue.util function parseArgs (...args) { let lang = Vue.config.lang if (args.length === 1) { - if (isObject(args[0]) || isArray(args[0])) { + if (isObject(args[0]) || Array.isArray(args[0])) { args = args[0] } else if (typeof args[0] === 'string') { lang = args[0] @@ -25,7 +25,7 @@ export default function (Vue) { if (typeof args[0] === 'string') { lang = args[0] } - if (isObject(args[1]) || isArray(args[1])) { + if (isObject(args[1]) || Array.isArray(args[1])) { args = args[1] } }