canvas-editor-engine 1.0.60 → 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.forEach((event) => {
30
+ EventService.eventList?.forEach((event) => {
31
31
  baseElement.addEventListener(event.name, event.action);
32
32
  });
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",