diff --git a/packages/devextreme/js/__internal/events/utils/m_event_nodes_disposing.ts b/packages/devextreme/js/__internal/events/utils/m_event_nodes_disposing.ts index ae6513a267ba..6d987c8aed01 100644 --- a/packages/devextreme/js/__internal/events/utils/m_event_nodes_disposing.ts +++ b/packages/devextreme/js/__internal/events/utils/m_event_nodes_disposing.ts @@ -1,19 +1,20 @@ -import eventsEngine from '../core/events_engine'; -import { removeEvent } from '../remove'; +import eventsEngine from '@js/events/core/events_engine'; +import { removeEvent } from '@js/events/remove'; function nodesByEvent(event) { - return event && [ - event.target, - event.delegateTarget, - event.relatedTarget, - event.currentTarget - ].filter(node => !!node); + return event && [ + event.target, + event.delegateTarget, + event.relatedTarget, + event.currentTarget, + ].filter((node) => !!node); } export const subscribeNodesDisposing = (event, callback) => { - eventsEngine.one(nodesByEvent(event), removeEvent, callback); + // @ts-expect-error + eventsEngine.one(nodesByEvent(event), removeEvent, callback); }; export const unsubscribeNodesDisposing = (event, callback) => { - eventsEngine.off(nodesByEvent(event), removeEvent, callback); + eventsEngine.off(nodesByEvent(event), removeEvent, callback); }; diff --git a/packages/devextreme/js/events/utils/event_nodes_disposing.js b/packages/devextreme/js/events/utils/event_nodes_disposing.js new file mode 100644 index 000000000000..0dd3c94270d2 --- /dev/null +++ b/packages/devextreme/js/events/utils/event_nodes_disposing.js @@ -0,0 +1 @@ +export * from '../../__internal/events/utils/m_event_nodes_disposing';