Skip to content

Commit

Permalink
fix(core) фикс приоритетов при мердже данных для событий show/tap (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksey Chepurko <[email protected]>
  • Loading branch information
AlekseyChepurko and Aleksey Chepurko authored Nov 25, 2023
1 parent 51e8b66 commit f8164be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/events/clickEvent/click.event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class ClickEventService extends BaseEvent {
* элемента значение data-block-id. Если условия соблюдены, собирает информацию об элементы с помощью функций
* getBlockInfo, getItemInfo и
* this.send({
* ...getBlockInfo(...),
* ...this.getPageData(),
* ...getBlockInfo(...),
* ...getItemInfo(...),
* })
*
Expand Down Expand Up @@ -70,9 +70,9 @@ export class ClickEventService extends BaseEvent {
const elementData = getItemInfo(block, targetItem);

this.send({
...elementData,
...pageData,
...blockData,
...elementData,
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/events/show/show.event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export class ShowEventService extends BaseEvent {
* вызывает
*
* this.send({
* ...getItemInfo(...),
* ...this.getPageData(),
* ...getBlockInfo(...),
* ...getItemInfo(...),
* })
*
* и отписывается от IntersectionObserver.
Expand Down Expand Up @@ -63,9 +63,9 @@ export class ShowEventService extends BaseEvent {
const elementData = getItemInfo(blockEl, elementRef);

this.send({
...elementData,
...pageData,
...blockData,
...elementData,
});

observer.disconnect();
Expand Down

0 comments on commit f8164be

Please sign in to comment.