5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:29:53 +08:00

Fix listenerOff issue.

This commit is contained in:
Lea Anthony 2025-02-16 16:13:00 +11:00
parent 0d81cd2831
commit 8624da51f8
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 5 additions and 0 deletions

View File

@ -202,6 +202,8 @@ export function EventsOff(eventName, ...additionalEventNames) {
*/
function listenerOff(listener) {
const eventName = listener.eventName;
if (eventListeners[eventName] === undefined) return;
// Remove local listener
eventListeners[eventName] = eventListeners[eventName].filter(l => l !== listener);

View File

@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed [listenerOff issue](https://github.com/wailsapp/wails/issues/3850) by @leaanthony.
## v2.10 - 2025-02-15
### Added