@nativescript/core 8.7.3-next-05-07-2024-8977885291 → 8.7.3-next-05-23-2024-9210745709

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,12 +145,16 @@ export class TabView extends View {
145
145
  public static selectedIndexChangedEvent: string;
146
146
 
147
147
  /**
148
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
149
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
150
- * @param callback - Callback function which will be executed when event is raised.
151
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
152
- */
153
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
148
+ * Adds a listener for the specified event name.
149
+ *
150
+ * @param eventName The name of the event.
151
+ * @param callback The event listener to add. Will be called when an event of
152
+ * the given name is raised.
153
+ * @param thisArg An optional parameter which, when set, will be bound as the
154
+ * `this` context when the callback is called. Falsy values will be not be
155
+ * bound.
156
+ */
157
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
154
158
 
155
159
  /**
156
160
  * Raised when the selected index changes.
@@ -87,12 +87,16 @@ export class WebView extends View {
87
87
  reload();
88
88
 
89
89
  /**
90
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
91
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
92
- * @param callback - Callback function which will be executed when event is raised.
93
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
94
- */
95
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
90
+ * Adds a listener for the specified event name.
91
+ *
92
+ * @param eventName The name of the event.
93
+ * @param callback The event listener to add. Will be called when an event of
94
+ * the given name is raised.
95
+ * @param thisArg An optional parameter which, when set, will be bound as the
96
+ * `this` context when the callback is called. Falsy values will be not be
97
+ * bound.
98
+ */
99
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
96
100
 
97
101
  /**
98
102
  * Raised when a loadFinished event occurs.