cradova 3.7.3 → 3.7.5
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.
- package/dist/index.js +2 -2
- package/dist/primitives/classes.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -308,10 +308,10 @@ var raw = (html) => {
|
|
|
308
308
|
class cradovaEvent {
|
|
309
309
|
after_comp_is_mounted = [];
|
|
310
310
|
after_page_is_killed = [];
|
|
311
|
-
dispatchEvent(eventName) {
|
|
311
|
+
async dispatchEvent(eventName) {
|
|
312
312
|
const eventListeners = this[eventName];
|
|
313
313
|
while (eventListeners.length !== 0) {
|
|
314
|
-
const en_cb = eventListeners.shift()();
|
|
314
|
+
const en_cb = await eventListeners.shift()();
|
|
315
315
|
if (en_cb) {
|
|
316
316
|
this.after_page_is_killed.push(en_cb);
|
|
317
317
|
}
|
|
@@ -19,7 +19,7 @@ export declare class cradovaEvent {
|
|
|
19
19
|
* Dispatch any event
|
|
20
20
|
* @param eventName
|
|
21
21
|
*/
|
|
22
|
-
dispatchEvent(eventName: "after_comp_is_mounted" | "after_page_is_killed"): void
|
|
22
|
+
dispatchEvent(eventName: "after_comp_is_mounted" | "after_page_is_killed"): Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
export declare const CradovaEvent: cradovaEvent;
|
|
25
25
|
/**
|