BigW Consortium Gitlab

Commit b08f9292 by Regis

interval event handlers - keep page:fetch listener null

parent db43813a
...@@ -60,10 +60,9 @@ ...@@ -60,10 +60,9 @@
}; };
const removeAll = () => { const removeAll = () => {
removeTimeIntervals(); window.removeEventListener('beforeunload', removeTimeIntervals);
window.removeEventListener('beforeunload', () => {}); window.removeEventListener('focus', startIntervalLoops);
window.removeEventListener('focus', () => {}); window.removeEventListener('blur', removeTimeIntervals);
window.removeEventListener('blur', () => {});
// turbolinks event handler // turbolinks event handler
document.removeEventListener('page:fetch', () => {}); document.removeEventListener('page:fetch', () => {});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment