canvas-editor-engine 1.0.59 → 1.0.61
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ class EventAtom {
|
|
14
14
|
}
|
15
15
|
exports.EventAtom = EventAtom;
|
16
16
|
class EventService {
|
17
|
-
static eventList;
|
17
|
+
static eventList = [];
|
18
18
|
static subcribe(controlEvent) {
|
19
19
|
const eventAtom = {
|
20
20
|
id: new guid4_1.Guid4().finite,
|
@@ -27,7 +27,7 @@ class EventService {
|
|
27
27
|
eventAtom.action(eventArgs);
|
28
28
|
}
|
29
29
|
static applyEvents(baseElement) {
|
30
|
-
EventService.eventList
|
30
|
+
EventService.eventList?.forEach((event) => {
|
31
31
|
baseElement.addEventListener(event.name, event.action);
|
32
32
|
});
|
33
33
|
}
|