Skip to content

Commit

Permalink
minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Feb 22, 2021
1 parent 76c46a4 commit 79fbb7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/balloons-and-static-electricity/view/BalloonNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class BalloonNode extends Node {
// pdom - when the balloon charge, position, or model.showChargesProperty changes, the balloon needs a new
// description for assistive technology
const updateAccessibleDescription = () => {
this.descriptionContent = this.describer.getBalloonDescription( model );
this.descriptionContent = this.describer.getBalloonDescription();
};
model.positionProperty.link( updateAccessibleDescription );
model.chargeProperty.link( updateAccessibleDescription );
Expand Down Expand Up @@ -357,7 +357,7 @@ class BalloonNode extends Node {
] );

// update the drag bounds when wall visibility changes
globalModel.wall.isVisibleProperty.link( isVisible => {
globalModel.wall.isVisibleProperty.link( () => {
this.keyboardDragHandler._dragBounds = this.getDragBounds();
} );

Expand Down

0 comments on commit 79fbb7c

Please sign in to comment.