From ba13ec11149b27aa19b1b8207a4f0755df68ca15 Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 13 Feb 2018 13:53:22 -0700 Subject: [PATCH] Added docs, see https://github.com/phetsims/friction/issues/64 --- js/friction/model/FrictionModel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/friction/model/FrictionModel.js b/js/friction/model/FrictionModel.js index 06cec1e7..4b2b81dd 100644 --- a/js/friction/model/FrictionModel.js +++ b/js/friction/model/FrictionModel.js @@ -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() { @@ -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() {