@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.
@@ -5010,9 +5010,7 @@ class StateView {
5010
5010
  // DELETE / DELETE BY REF ID
5011
5011
  changes[changeTree.parentIndex] = exports.OPERATION.DELETE;
5012
5012
  // Remove child schema from visible set
5013
- changeTree.forEachChild((childChangeTree) => {
5014
- this.visible.delete(childChangeTree);
5015
- });
5013
+ this._recursiveDeleteVisibleChangeTree(changeTree);
5016
5014
  }
5017
5015
  else {
5018
5016
  // delete all "tagged" properties.
@@ -5077,6 +5075,12 @@ class StateView {
5077
5075
  }
5078
5076
  return isVisible;
5079
5077
  }
5078
+ _recursiveDeleteVisibleChangeTree(changeTree) {
5079
+ changeTree.forEachChild((childChangeTree) => {
5080
+ this.visible.delete(childChangeTree);
5081
+ this._recursiveDeleteVisibleChangeTree(childChangeTree);
5082
+ });
5083
+ }
5080
5084
  }
5081
5085
 
5082
5086
  registerType("map", { constructor: MapSchema });