]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: more private properties
authorEvan You <yyx990803@gmail.com>
Wed, 5 May 2021 13:47:14 +0000 (09:47 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 5 May 2021 13:47:14 +0000 (09:47 -0400)
packages/runtime-core/src/compat/instance.ts

index 1f3ad8e6af9bf316f09a8e3e7bc8f4241babd9be..01c360b4615ea586979c8ee2078ef96deaec8da8 100644 (file)
@@ -130,13 +130,15 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {
         return res
       },
 
-      // internal data access... (vuex uses this)
+      // some private properties that are likely accessed...
+      _self: i => i.proxy,
+      _uid: i => i.uid,
       _data: i => i.data,
+      _isMounted: i => i.isMounted,
+      _isDestroyed: i => i.isUnmounted,
 
       // v2 render helpers
       $createElement: () => compatH,
-      _self: i => i.proxy,
-      _uid: i => i.uid,
       _c: () => compatH,
       _o: () => legacyMarkOnce,
       _n: () => toNumber,