Skip to content

Commit

Permalink
Use GroupTandem, see phetsims/tandem#87
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 23, 2021
1 parent 3c41182 commit ee83d74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/view/InteractiveSchematicAtom.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class InteractiveSchematicAtom extends Node {
this.addChild( electronLayer );

// Add the nucleon particle views.
const nucleonGroupTandem = options.tandem && options.tandem.createGroupTandem( 'nucleons' );
const electronGroupTandem = options.tandem && options.tandem.createGroupTandem( 'electrons' );
const nucleonGroupTandem = options.tandem && options.tandem.createTandem('nucleons').createGroupTandem( 'nucleon' );
const electronGroupTandem = options.tandem && options.tandem.createTandem('electrons').createGroupTandem( 'electron' );
model.nucleons.forEach( nucleon => {
const particleView = new ParticleView( nucleon, modelViewTransform, {
highContrastProperty: options.highContrastProperty,
Expand Down Expand Up @@ -129,7 +129,7 @@ class InteractiveSchematicAtom extends Node {
model.electronShellDepictionProperty.link( updateElectronVisibility );

// Add the front portion of the buckets. This is done separately from the bucket holes for layering purposes.
const bucketGroupTandem = options.tandem.createGroupTandem( 'bucketFronts' );
const bucketGroupTandem = options.tandem.createTandem('bucketFronts').createGroupTandem( 'bucketFront' );
const bucketFrontsAndDragHandlers = []; // keep track for disposal
_.each( model.buckets, bucket => {
const bucketFront = new BucketFront( bucket, modelViewTransform, { tandem: bucketGroupTandem.createNextTandem() } );
Expand Down

0 comments on commit ee83d74

Please sign in to comment.