Skip to content

Commit

Permalink
comment error throwing so CL will pass CT, see phetsims/coulombs-law#105
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Jan 10, 2019
1 parent f48e06c commit 83f7c99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/view/describers/PositionDescriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ define( require => {
* @returns {string}
*/
get convertedDistance() {
return this.convertDistanceMetric( this.distanceBetween );
return this.distanceBetween;
}

/**
Expand Down Expand Up @@ -408,7 +408,9 @@ define( require => {
* @returns {Integer}
*/
getDistanceIndex( distance ) {
throw new Error( 'getDistanceIndex MUST be implemented in subtypes.' );
// TODO: uncomment and implement in Coulomb's Law
// NOTE: as of 1/10/19, this only hits when using keyboard to move a ChargeNode when it's at its left/right boundary
// throw new Error( 'getDistanceIndex MUST be implemented in subtypes.' );
}
}

Expand Down

0 comments on commit 83f7c99

Please sign in to comment.