Closed samreid closed 7 years ago
MakeATenGameScreenView.js has:
var showingLeftProperty = DerivedProperty.valueEquals( model.gameStateProperty, new Property( GameState.CHOOSING_LEVEL ) );
This creates a new constant Property just for the sake of using valueEquals. It seems it would be better to use:
var showingLeftProperty = new DerivedProperty( model.gameStateProperty, function( gameState ) { return gameState === GameState.CHOOSING_LEVEL; } );
Implemented the change (with array-ification for the DerivedProperty first parameter).
Thanks!
MakeATenGameScreenView.js has:
This creates a new constant Property just for the sake of using valueEquals. It seems it would be better to use: