angular-three 4.0.0-next.82 → 4.0.0-next.83

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.
@@ -775,7 +775,7 @@ function prepare(object, type, instanceState) {
775
775
  return () => {
776
776
  const iS = getInstanceState(instance);
777
777
  if (iS) {
778
- delete iS.handlers[eventName];
778
+ iS.handlers && delete iS.handlers[eventName];
779
779
  iS.eventCount -= 1;
780
780
  }
781
781
  };