Commit dda29575 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'jnnkl-remove-eventlistener-jobs-index' into 'master'

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!55620
parents e27105b7 4653f081
import Vue from 'vue'; import Vue from 'vue';
import GlCountdown from '~/vue_shared/components/gl_countdown.vue'; import GlCountdown from '~/vue_shared/components/gl_countdown.vue';
document.addEventListener('DOMContentLoaded', () => { const remainingTimeElements = document.querySelectorAll('.js-remaining-time');
const remainingTimeElements = document.querySelectorAll('.js-remaining-time'); remainingTimeElements.forEach(
remainingTimeElements.forEach(
(el) => (el) =>
new Vue({ new Vue({
el, el,
...@@ -15,5 +14,4 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -15,5 +14,4 @@ document.addEventListener('DOMContentLoaded', () => {
}); });
}, },
}), }),
); );
});
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