From 07daf1b6114329ad92790d88f41fbf36dd09c4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 20 Apr 2017 09:40:08 +0800 Subject: [PATCH] update i18n format vue remove hasOwn --- 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 93e3c341..59aba11b 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