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:
parent
0d81cd2831
commit
8624da51f8
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user