Fix removeListener if player embed api
This commit is contained in:
parent
3d2e4f0371
commit
c360e6cc1a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export class EventRegistrar {
|
|||
public removeListener<T> (name: string, handler: EventHandler<T>) {
|
||||
if (!this.eventRegistrations[name]) return false
|
||||
|
||||
this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x === handler)
|
||||
this.eventRegistrations[name].registrations = this.eventRegistrations[name].registrations.filter(x => x !== handler)
|
||||
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue