Skip to content

Commit

Permalink
Move multilink and related methods to Multilink, see phetsims/axon#395
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 23, 2022
1 parent 4344422 commit b2db35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/game/view/ChallengeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
import Property from '../../../../axon/js/Property.js';
import Multilink from '../../../../axon/js/Multilink.js';
import Dimension2 from '../../../../dot/js/Dimension2.js';
import merge from '../../../../phet-core/js/merge.js';
import FaceWithPointsNode from '../../../../scenery-phet/js/FaceWithPointsNode.js';
Expand Down Expand Up @@ -226,7 +226,7 @@ class ChallengeNode extends Node {

// @private must be disposed
// Move from "Try Again" to "Check" state when a quantity is changed, see reactants-products-and-leftovers#37.
this.answerChangedLink = Property.lazyMultilink( quantityProperties, () => {
this.answerChangedLink = Multilink.lazyMultilink( quantityProperties, () => {
if ( this.playStateProperty.get() === PlayState.TRY_AGAIN ) {
this.playStateProperty.set( PlayState.SECOND_CHECK );
}
Expand Down

0 comments on commit b2db35f

Please sign in to comment.