Commit 6ee81839 authored by Mike Greiling's avatar Mike Greiling

Merge branch...

Merge branch '262406-move-handlers-outside-of-domcontentloaded-app-assets-javascripts-notes-index-js' into 'master'

Move handlers outside of DOMContentLoaded: app/assets/javascripts/notes/index.js

See merge request gitlab-org/gitlab!45406
parents 22ba38a6 6416da05
......@@ -5,11 +5,9 @@ import initSortDiscussions from './sort_discussions';
import initTimelineToggle from './timeline';
import { store } from './stores';
document.addEventListener('DOMContentLoaded', () => {
const el = document.getElementById('js-vue-notes');
if (!el) return;
const el = document.getElementById('js-vue-notes');
if (el) {
// eslint-disable-next-line no-new
new Vue({
el,
......@@ -61,4 +59,4 @@ document.addEventListener('DOMContentLoaded', () => {
initDiscussionFilters(store);
initSortDiscussions(store);
initTimelineToggle(store);
});
}
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