canvas-editor-engine 1.0.60 → 1.0.61

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.
@@ -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",