Explorar el Código

data props -> enumerable & configurable

Evan You hace 12 años
padre
commit
e15cfe20ae
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/observer.js

+ 2 - 0
src/observer.js

@@ -256,6 +256,8 @@ function convertKey (obj, key) {
     init(obj[key])
 
     oDef(obj, key, {
+        enumerable: true,
+        configurable: true,
         get: function () {
             var value = values[key]
             // only emit get on tip values