@colyseus/schema 3.0.38 → 3.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5008,9 +5008,7 @@ class StateView {
5008
5008
  // DELETE / DELETE BY REF ID
5009
5009
  changes[changeTree.parentIndex] = OPERATION.DELETE;
5010
5010
  // Remove child schema from visible set
5011
- changeTree.forEachChild((childChangeTree) => {
5012
- this.visible.delete(childChangeTree);
5013
- });
5011
+ this._recursiveDeleteVisibleChangeTree(changeTree);
5014
5012
  }
5015
5013
  else {
5016
5014
  // delete all "tagged" properties.
@@ -5075,6 +5073,12 @@ class StateView {
5075
5073
  }
5076
5074
  return isVisible;
5077
5075
  }
5076
+ _recursiveDeleteVisibleChangeTree(changeTree) {
5077
+ changeTree.forEachChild((childChangeTree) => {
5078
+ this.visible.delete(childChangeTree);
5079
+ this._recursiveDeleteVisibleChangeTree(childChangeTree);
5080
+ });
5081
+ }
5078
5082
  }
5079
5083
 
5080
5084
  registerType("map", { constructor: MapSchema });