Explorar o código

no need to check hasOwn in _defineMeta

Evan You %!s(int64=11) %!d(string=hai) anos
pai
achega
c6d99e46e0
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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,