From 07daf1b6114329ad92790d88f41fbf36dd09c4e3 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 20 Apr 2017 09:40:08 +0800 Subject: [PATCH] update i18n format --- src/locale/format.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/locale/format.js b/src/locale/format.js index 93e3c34..59aba11 100644 --- a/src/locale/format.js +++ b/src/locale/format.js @@ -7,7 +7,10 @@ const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g; export default function(Vue) { - const { hasOwn } = Vue.util; + // const { hasOwn } = Vue.util; + function hasOwn (obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); + } /** * template -- libgit2 0.21.4