Skip to content

Commit

Permalink
add JSDoc for get defaultValue, phetsims/chipper#1133
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Nov 1, 2021
1 parent 8b22239 commit 1b1daec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/Range.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ class Range {
/**
* In https://github.com/phetsims/dot/issues/57, defaultValue was moved to RangeWithValue.
* This ES5 getter catches programming errors where defaultValue is still used with Range.
* @public
* @returns {number}
*/
get defaultValue() {
throw new Error( 'defaultValue is undefined, did you mean to use RangeWithValue?' );
Expand Down

0 comments on commit 1b1daec

Please sign in to comment.