Skip to content

Commit

Permalink
Added TODOs, see #64
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 6, 2018
1 parent cdd5dbd commit 58adf4f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/friction/view/FrictionScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,14 @@ define( function( require ) {
friction.register( 'FrictionScreenView', FrictionScreenView );

return inherit( ScreenView, FrictionScreenView, {
step: function( timeElapsed ) {
this.magnifierNode.step( timeElapsed );

/**
* Move forward in time
* @param {number} dt - seconds
* @public
*/
step: function( dt ) {
this.magnifierNode.step( dt );
}
} );
} );
3 changes: 3 additions & 0 deletions js/friction/view/magnifier/AtomNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ define( function( require ) {
self.setVisible( false );
}
};

// TODO: why is this linking every time it evaporates? Can it only evaporate once?
// TODO: does this file need a dispose function?
this.model.newStepProperty.link( self.handler );
},
getYrange: function() {
Expand Down
5 changes: 5 additions & 0 deletions js/friction/view/magnifier/MagnifierNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ define( function( require ) {

return inherit( Node, MagnifierNode, {

/**
* Move forward in time
* @param {number} dt - seconds
* @public
*/
step: function( dt ) {
this.atomCanvasNode.invalidatePaint(); // tell the atom canvas to redraw itself
},
Expand Down

0 comments on commit 58adf4f

Please sign in to comment.