Skip to content

Commit

Permalink
add missing dependency, #211
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Nov 18, 2023
1 parent a3238e7 commit 7ee5c39
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions js/common/model/IdealGasLawContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ export default class IdealGasLawContainer extends BaseContainer {

this.previousLeft = this.left;

this.isOpenProperty = new DerivedProperty( [ this.lidIsOnProperty, this.lidWidthProperty ],
( lidIsOn, lidWidth ) => {
return !lidIsOn || this.getOpeningWidth() !== 0;
}, {
accessNonDependencies: true //TODO https://github.com/phetsims/gas-properties/issues/211
} );
this.isOpenProperty = new DerivedProperty(
[ this.lidIsOnProperty, this.lidWidthProperty, this.boundsProperty ],
( lidIsOn, lidWidth, bounds ) => !lidIsOn || this.getOpeningWidth() !== 0
);
}

public override reset(): void {
Expand Down

0 comments on commit 7ee5c39

Please sign in to comment.