Skip to content

Commit

Permalink
self options defaults to providedOptions instead of {}, and add {} as…
Browse files Browse the repository at this point in the history
… self options in usages, phetsims/phet-core#105
  • Loading branch information
zepumph committed Feb 24, 2022
1 parent a75aa42 commit d2d7c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/common/view/RatioHandNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class FilledInHandPath extends Path {

constructor( providedOptions?: PathOptions ) {

const options = optionize<PathOptions>( {
const options = optionize<PathOptions,{}>( {
stroke: 'black',
lineWidth: 2
}, providedOptions );
Expand All @@ -273,7 +273,7 @@ class CutOutHandPath extends Path {

constructor( providedOptions?: PathOptions ) {

const options = optionize<PathOptions>( {
const options = optionize<PathOptions,{}>( {
stroke: 'black',
lineWidth: 2
}, providedOptions );
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/TickMarkViewRadioButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class NumberedTickMarksIconPath extends Path {

constructor( providedOptions?: PathOptions ) {

const options = optionize<PathOptions>( {
const options = optionize<PathOptions, {}>( {
fill: 'black',
scale: ICON_SCALE
}, providedOptions );
Expand Down Expand Up @@ -128,7 +128,7 @@ class TickMarksIconPath extends Path {

constructor( providedOptions?: PathOptions ) {

const options = optionize<PathOptions>( {
const options = optionize<PathOptions, {}>( {
fill: 'black',
scale: ICON_SCALE
}, providedOptions );
Expand Down

0 comments on commit d2d7c89

Please sign in to comment.