mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): missing parameter for once event listeners (#10715)
This commit is contained in:
committed by
GitHub
parent
50019ecd30
commit
852011c4f9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user