Skip to content

Commit

Permalink
Added docs, see #64
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 13, 2018
1 parent 9cc8c75 commit ba13ec1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/friction/model/FrictionModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ define( function( require ) {

/**
* TODO: this must be called from the end of the view construction for unknown reasons, or atoms don't fly off
* TODO: Why? it would be better if this could be called during the constructor.
* @public
*/
init: function() {
Expand Down Expand Up @@ -320,12 +321,12 @@ define( function( require ) {
}

// set the new position
// TODO: Vector2.plus should take a Vector2 argument
this.bookPositionProperty.set( this.bookPositionProperty.get().plus( delta ) );
},

/**
* TODO: document me
* If the oscillation amplitude is over the evaporation threshold, this method is called. It will try to evaporate
* an atom, if one is available.
* @private
*/
tryToEvaporate: function() {
Expand Down

0 comments on commit ba13ec1

Please sign in to comment.