Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix: unbind close listener
Browse files Browse the repository at this point in the history
  • Loading branch information
quanho committed Oct 17, 2024
1 parent 2cdc807 commit 857c3e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/master-item-subscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export default function MasterItemSubscriber({ model, callback }) {
unsubscribe() {
Object.keys(subscriptions).forEach((libraryId) => {
subscriptions[libraryId].listener.dispose();
subscriptions[libraryId].unbindCloseListnener();
});
subscriptions = {};
},
Expand Down

0 comments on commit 857c3e8

Please sign in to comment.