Skip to content

Commit

Permalink
fix issue where mass sound could get triggered early, see #166
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Jul 10, 2019
1 parent 587a3b6 commit 486cc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/gravity-force-lab-basics/view/MassSoundGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define( require => {
this.play();
}
};
massProperty.link( massListener );
massProperty.lazyLink( massListener );

// @private {function}
this.disposeMassSoundGenerator = () => { massProperty.unlink( massListener ); };
Expand Down

0 comments on commit 486cc8d

Please sign in to comment.