Skip to content

Commit

Permalink
add Disposable.addDisposerAction() usages, phetsims/axon#455
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 6, 2025
1 parent 767b0a4 commit 3d79867
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/AccordionBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,7 @@ export default class AccordionBox extends Sizable( Node ) {

this.alertDescriptionUtterance( contextResponse );
};
this.expandedProperty.link( expandedPropertyObserver );

this.disposeEmitter.addListener( () => this.expandedProperty.unlink( expandedPropertyObserver ) );
this.expandedProperty.link( expandedPropertyObserver, { disposer: this } );

this.mutate( _.omit( options, 'cursor' ) );

Expand Down

0 comments on commit 3d79867

Please sign in to comment.