Explorar el Código

also make _ and $ prefixed properties reactive, but not proxying them

Evan You hace 10 años
padre
commit
b89e7c333e
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      src/observer/index.js

+ 1 - 3
src/observer/index.js

@@ -82,9 +82,7 @@ Observer.prototype.walk = function (obj) {
   while (i--) {
   while (i--) {
     key = keys[i]
     key = keys[i]
     prefix = key.charCodeAt(0)
     prefix = key.charCodeAt(0)
-    if (prefix !== 0x24 && prefix !== 0x5F) { // skip $ or _
-      this.convert(key, obj[key])
-    }
+    this.convert(key, obj[key])
   }
   }
 }
 }