@soyfri/template 1.0.10-beta.2 → 1.0.10-beta.3
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.
|
@@ -2,9 +2,11 @@ import { DataUtil } from './_DataUtil';
|
|
|
2
2
|
import { getUniqueIdWithPrefix } from './_TypesHelpers';
|
|
3
3
|
export class EventHandlerUtil {
|
|
4
4
|
static store = {};
|
|
5
|
+
// @ts-ignore
|
|
5
6
|
static setEventMetasByName(name, handlers) {
|
|
6
7
|
EventHandlerUtil.store[name] = handlers;
|
|
7
8
|
}
|
|
9
|
+
// @ts-ignore
|
|
8
10
|
static getEventMetaByName(name) {
|
|
9
11
|
return EventHandlerUtil.store[name];
|
|
10
12
|
}
|
|
@@ -14,7 +14,7 @@ export class EventHandlerUtil {
|
|
|
14
14
|
[handlerId: string]: EventMeta
|
|
15
15
|
}
|
|
16
16
|
} = {}
|
|
17
|
-
|
|
17
|
+
// @ts-ignore
|
|
18
18
|
private static setEventMetasByName(
|
|
19
19
|
name: string,
|
|
20
20
|
handlers: {
|
|
@@ -23,7 +23,7 @@ export class EventHandlerUtil {
|
|
|
23
23
|
): void {
|
|
24
24
|
EventHandlerUtil.store[name] = handlers
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
// @ts-ignore
|
|
27
27
|
private static getEventMetaByName(name: string):
|
|
28
28
|
| {
|
|
29
29
|
[handlerId: string]: EventMeta
|