diff options
author | Regis <boudinot.regis@yahoo.com> | 2016-12-16 15:42:05 -0700 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2016-12-16 15:42:05 -0700 |
commit | b08f92928058b395d2d6666b13ccb113bd78efbf (patch) | |
tree | dee3b97817a391f8476a18ac749e736a994d86d6 | |
parent | db43813aa0118852d7529b9ec856d6cca19540ad (diff) | |
download | gitlab-ce-b08f92928058b395d2d6666b13ccb113bd78efbf.tar.gz |
interval event handlers - keep page:fetch listener null
-rw-r--r-- | app/assets/javascripts/vue_pipelines_index/store.js.es6 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/store.js.es6 b/app/assets/javascripts/vue_pipelines_index/store.js.es6 index 46c27b1c38a..3cd31dbffe7 100644 --- a/app/assets/javascripts/vue_pipelines_index/store.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/store.js.es6 @@ -60,10 +60,9 @@ }; const removeAll = () => { - removeTimeIntervals(); - window.removeEventListener('beforeunload', () => {}); - window.removeEventListener('focus', () => {}); - window.removeEventListener('blur', () => {}); + window.removeEventListener('beforeunload', removeTimeIntervals); + window.removeEventListener('focus', startIntervalLoops); + window.removeEventListener('blur', removeTimeIntervals); // turbolinks event handler document.removeEventListener('page:fetch', () => {}); |