Skip to content

Commit

Permalink
🐛 bug(util): fixed isArray reference errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jul 24, 2016
1 parent 6ace10d commit 0c6f6a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
}
}
Expand Down

0 comments on commit 0c6f6a0

Please sign in to comment.