fix(core): missing parameter for once event listeners (#10715)

This commit is contained in:
Dimitris-Rafail Katsampas
2025-03-03 16:54:52 +02:00
committed by GitHub
parent 50019ecd30
commit 852011c4f9
6 changed files with 11 additions and 10 deletions

View File

@@ -197,6 +197,7 @@ export class Observable {
* @param eventName Name of the event to attach to.
* @param callback A function to be called when some of the specified event(s) is raised.
* @param thisArg An optional parameter which when set will be used as "this" in callback method call.
* @param once An optional parameter which when set will cause the event listener to fire once.
*/
public addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void {
once = once || undefined;