Przeglądaj źródła

chore(reactivity): remove unnecessary RefImpl _shallow default value (#3895)

zhangenming 4 lat temu
rodzic
commit
960ef1691f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/reactivity/src/ref.ts

+ 1 - 1
packages/reactivity/src/ref.ts

@@ -56,7 +56,7 @@ class RefImpl<T> {
 
 
   public readonly __v_isRef = true
   public readonly __v_isRef = true
 
 
-  constructor(private _rawValue: T, public readonly _shallow = false) {
+  constructor(private _rawValue: T, public readonly _shallow: boolean) {
     this._value = _shallow ? _rawValue : convert(_rawValue)
     this._value = _shallow ? _rawValue : convert(_rawValue)
   }
   }