Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Feb 17, 2021
1 parent 5fa021f commit 3dab92e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions js/balloons-and-static-electricity/view/BalloonNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,16 @@ class BalloonNode extends Node {
addedChargesNode.visible = true;
}
else {
const visiblity = ( value === 'all' );
originalChargesNode.visible = visiblity;
addedChargesNode.visible = visiblity;
const visibility = ( value === 'all' );
originalChargesNode.visible = visibility;
addedChargesNode.visible = visibility;
}
} );

// sound generation for drift velocity
soundManager.addSoundGenerator( new BalloonVelocitySoundGenerator(
model.velocityProperty,
model.onSweaterProperty,
model.touchingWallProperty
) );
soundManager.addSoundGenerator(
new BalloonVelocitySoundGenerator( model.velocityProperty, model.onSweaterProperty, model.touchingWallProperty )
);

// sound generation for when the balloon is being rubbed on the sweater
soundManager.addSoundGenerator(
Expand Down

0 comments on commit 3dab92e

Please sign in to comment.