diff options
Diffstat (limited to 'client/src/standalone')
-rw-r--r-- | client/src/standalone/player/events.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/standalone/player/events.ts b/client/src/standalone/player/events.ts index 7a8e9dbec..77d21c78c 100644 --- a/client/src/standalone/player/events.ts +++ b/client/src/standalone/player/events.ts | |||
@@ -41,7 +41,7 @@ export class EventRegistrar { | |||
41 | public removeListener<T> (name: string, handler: EventHandler<T>) { | 41 | public removeListener<T> (name: string, handler: EventHandler<T>) { |
42 | if (!this.eventRegistrations[name]) return false | 42 | if (!this.eventRegistrations[name]) return false |
43 | 43 | ||
44 | this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x === handler) | 44 | this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x !== handler) |
45 | 45 | ||
46 | return true | 46 | return true |
47 | } | 47 | } |