Skip to content

Commit

Permalink
refactor reset into ISCLObject.js, see phetsims/coulombs-law#63
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Sep 21, 2018
1 parent a43071c commit f9e0a9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/model/ISLCObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ define( function( require ) {
*/
calculateRadius: function() {
throw new Error( 'calculateRadius must be implemented in descendent types' );
},

// @public
reset: function() {
this.valueProperty.reset();
this.positionProperty.reset();
}
} );
} );

0 comments on commit f9e0a9e

Please sign in to comment.