Skip to content

Commit

Permalink
Fixing equals sign visibility, as it didn't listen to everything that…
Browse files Browse the repository at this point in the history
… determined hasBothTerms(). See #267
  • Loading branch information
jonathanolson committed Feb 21, 2017
1 parent fcc294e commit 6400e98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/make-a-ten/common/view/AdditionTermsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ define( function( require ) {
// modules
var makeATen = require( 'MAKE_A_TEN/makeATen' );
var inherit = require( 'PHET_CORE/inherit' );
var Property = require( 'AXON/Property' );
var Node = require( 'SCENERY/nodes/Node' );
var PhetFont = require( 'SCENERY_PHET/PhetFont' );
var Text = require( 'SCENERY/nodes/Text' );
Expand Down Expand Up @@ -85,6 +86,8 @@ define( function( require ) {
additionTerms.activeTermProperty.link( function( term ) {
leftNumberDisplayBackground.stroke = ( term === ActiveTerm.LEFT ) ? STROKE_COLOR : null;
rightNumberDisplayBackground.stroke = ( term === ActiveTerm.RIGHT ) ? STROKE_COLOR : null;
} );
Property.multilink( [ additionTerms.leftTermProperty, additionTerms.rightTermProperty, additionTerms.activeTermProperty ], function() {
equalsSignText.visible = additionTerms.hasBothTerms();
} );
}
Expand Down

0 comments on commit 6400e98

Please sign in to comment.