You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classAmpPhaseAccordionBoxextendsAccordionBox{// TODO - comment code/** * @param {Object} [options] * @param {Model} model */constructor(options,model){
classAmpSelectorRectNodeextendsRectangle{/** * @param {Object} [options] * @param {Model} model */constructor(options,model,row,col,ampAxisProperty,maxAmpProperty,gridSizeProperty){
A description of PHET's "Options and Config" pattern can be found in PhET Software Design Patterns. Because it is optional, options should always be the last parameter.
The text was updated successfully, but these errors were encountered:
Made some changes to the usage of options, though I think some of those classes could still use some cleaning up beyond just changing options to be the last constructor parameter.
I'll take a closer look tomorrow and then close the issue if everything is fine.
There is a definite misunderstanding about how to use
options
, which is one of PhET's fundamental design patterns.Some examples:
A description of PHET's "Options and Config" pattern can be found in PhET Software Design Patterns. Because it is optional,
options
should always be the last parameter.The text was updated successfully, but these errors were encountered: