Przeglądaj źródła

no need to check hasOwn in _defineMeta

Evan You 11 lat temu
rodzic
commit
c6d99e46e0
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0 4
      src/instance/scope.js

+ 0 - 4
src/instance/scope.js

@@ -319,10 +319,6 @@ exports._addChild = function (opts, BaseCtor) {
  */
 
 exports._defineMeta = function (key, value) {
-  if (this.hasOwnProperty('key')) {
-    this[key] = value
-    return
-  }
   var ob = this.$observer
   Object.defineProperty(this, key, {
     enumerable: true,