Skip to content

Commit

Permalink
different approach for static properties, see #37
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Oct 25, 2019
1 parent 052fd48 commit 1b3a14c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions js/explore/model/BankSceneModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,12 @@ define( require => {
this.showComparisonAccountProperty.reset();
this.comparisonAccount.reset();
}

// statics - colors used for primary and comparison account points
static get PRIMARY_ACCOUNT_POINT_COLOR() { return PRIMARY_ACCOUNT_POINT_COLOR; } // eslint-disable-line bad-sim-text

static get COMPARISON_ACCOUNT_POINT_COLOR() { return COMPARISON_ACCOUNT_POINT_COLOR; } // eslint-disable-line bad-sim-text
}

// static properties
BankSceneModel.PRIMARY_ACCOUNT_POINT_COLOR = PRIMARY_ACCOUNT_POINT_COLOR;
BankSceneModel.COMPARISON_ACCOUNT_POINT_COLOR = COMPARISON_ACCOUNT_POINT_COLOR;

class Account {
constructor( initialBalance = 0 ) {

Expand Down
2 changes: 1 addition & 1 deletion js/generic/view/NLIGenericScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ define( require => {
const CHECKBOX_FONT = new PhetFont( 16 );
const CHECKBOX_DILATION = 6;
const ARROW_ICON_LENGTH = 40;
const COMBO_BOX_FONT = new PhetFont( 14 );
const COMBO_BOX_FONT = new PhetFont( 16 );
const ORIENTATION_BUTTON_DILATION = 2;

// strings
Expand Down

0 comments on commit 1b3a14c

Please sign in to comment.