Skip to content
Snippets Groups Projects
Commit 5094ae79 authored by Johannes Kreiner's avatar Johannes Kreiner
Browse files

[TASK] Dispatch event when displaying new data

parent f8ad316a
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,12 @@ export default class ScrollBrowser {
this.lastUrl = this.url;
this.url = doc.querySelector('.tx-pagebrowse-next a').getAttribute('href');
this.lock = false;
const displayNewDataEvent = new CustomEvent('sg_news:displayNewData', {
detail: results
});
document.dispatchEvent(displayNewDataEvent);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment