Commit 07daf1b6114329ad92790d88f41fbf36dd09c4e3

Authored by 梁灏
1 parent ab249f70

update i18n format

vue remove hasOwn
Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/locale/format.js
... ... @@ -7,7 +7,10 @@
7 7 const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
8 8  
9 9 export default function(Vue) {
10   - const { hasOwn } = Vue.util;
  10 + // const { hasOwn } = Vue.util;
  11 + function hasOwn (obj, key) {
  12 + return Object.prototype.hasOwnProperty.call(obj, key);
  13 + }
11 14  
12 15 /**
13 16 * template
... ...