Преглед изворни кода

no need to check hasOwn in _defineMeta

Evan You пре 11 година
родитељ
комит
c6d99e46e0
1 измењених фајлова са 0 додато и 4 уклоњено
  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,