Skip to content

Commit

Permalink
fix: ensure transient button event listeners are removed on dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben committed Jul 11, 2024
1 parent 51b4670 commit 00f8431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/transient-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TransientButton extends Button {

// When shown, the float button will be visible even if the user is inactive.
// Clear this if there is any interaction.
player.on(['useractive', 'userinactive'], (e) => {
this.on(this.player_, ['useractive', 'userinactive'], (e) => {
this.removeClass('force-display');
});
}
Expand Down

0 comments on commit 00f8431

Please sign in to comment.