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 bd6412a commit 319c2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/quadrilateral/view/VertexDragAreaNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class VertexDragAreaNode extends Path {

constructor( vertex: Vertex, sides: Side[], modelViewTransform: ModelViewTransform2, providedOptions?: PathOptions ) {

const options = optionize<PathOptions>( {
const options = optionize<PathOptions, {}>( {
fill: `rgba(${dotRandom.nextInt( 255 )},${dotRandom.nextInt( 255 )},${dotRandom.nextInt( 255 )},0.5)`
}, providedOptions );

Expand Down

0 comments on commit 319c2fc

Please sign in to comment.