Skip to content

Commit

Permalink
Improve comments and naming, see phetsims/number-play#97
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Jan 17, 2023
1 parent 53b854c commit e5c62d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/make-a-ten/explore/view/ExplorePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class ExplorePanel extends Panel {
resize: false
}, options );

const addAndDragNumber = screenView.addAndDragNumber.bind( screenView );
const hundredTargetNode = new CountingCreatorNode( 2, screenView, sumProperty, resetEmitter, addAndDragNumber );
const tenTargetNode = new CountingCreatorNode( 1, screenView, sumProperty, resetEmitter, addAndDragNumber );
const oneTargetNode = new CountingCreatorNode( 0, screenView, sumProperty, resetEmitter, addAndDragNumber );
const addAndDragCountingObject = screenView.addAndDragCountingObject.bind( screenView );
const hundredTargetNode = new CountingCreatorNode( 2, screenView, sumProperty, resetEmitter, addAndDragCountingObject );
const tenTargetNode = new CountingCreatorNode( 1, screenView, sumProperty, resetEmitter, addAndDragCountingObject );
const oneTargetNode = new CountingCreatorNode( 0, screenView, sumProperty, resetEmitter, addAndDragCountingObject );

const box = new HBox( {
children: [ hundredTargetNode, tenTargetNode, oneTargetNode ],
Expand Down

0 comments on commit e5c62d8

Please sign in to comment.