Hello,
I am not sure if I am doing something wrong but I have following situation.
* with_endless mixin which implements the endless scrolling (either triggered on scroll or on click).
The mixin retrieves the data from backend and triggers event with the data:
this.trigger((this.$node), 'dataEndlessAvailable', fragment);
Both of the below components have with_endless mixin applied
* UiTimeline component - which takes care of the posts in the timeline (prepending, appending, deleting etc)
* UiPost component - handles the post itself and is attached from within the UiTimeline (used withchild)
Both of the components "listen" on the dataEndlessAvailable event:
this.on('dataEndlessAvailable', this.uiHandleEndless);
The problem is when the dataEndlessAvailble is triggered both uiTimeline and uiPost receive the event.
Thanks for your help.
Regards,
Jorge Sanchez