Skip to content

Commit

Permalink
Convert to use PhetioGroup, see phetsims/molecules-and-light#353
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and jessegreenberg committed Apr 21, 2021
1 parent a819d93 commit 5a6609e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/moleculesandlight/view/ObservationWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ inherit( Rectangle, ObservationWindow, {

// dispose all photons that leave the observation window
for ( let i = 0; i < photonsToRemove.length; i++ ) {
photonsToRemove[ i ].dispose();
this.photonAbsorptionModel.photonGroup.disposeElement( photonsToRemove[ i ] );
}
},

Expand Down

0 comments on commit 5a6609e

Please sign in to comment.