Evan You пре 10 година
родитељ
комит
d6ea2e5dc8
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      src/runtime/instance/proxy.js

+ 1 - 2
src/runtime/instance/proxy.js

@@ -16,8 +16,7 @@ if (process.env.NODE_ENV !== 'production') {
   proxyHandlers = {
     has (target, key) {
       const has = key in target
-      const allowed = allowedGlobals(key)
-      if (!has && !allowed) {
+      if (!has && !allowedGlobals(key)) {
         warn(
           `Trying to access non-existent property "${key}" while rendering.`,
           target