Commit ca03e79d authored by David O'Regan's avatar David O'Regan

Merge branch 'jnnkl-remove-eventlistener-feature-flag-edit' into 'master'

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!54560
parents 12652090 5f4f1b9c
/* eslint-disable no-new */
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
import EditUserList from '~/user_lists/components/edit_user_list.vue'; import EditUserList from '~/user_lists/components/edit_user_list.vue';
...@@ -5,15 +7,13 @@ import createStore from '~/user_lists/store/edit'; ...@@ -5,15 +7,13 @@ import createStore from '~/user_lists/store/edit';
Vue.use(Vuex); Vue.use(Vuex);
document.addEventListener('DOMContentLoaded', () => { const el = document.getElementById('js-edit-user-list');
const el = document.getElementById('js-edit-user-list'); const { userListsDocsPath } = el.dataset;
const { userListsDocsPath } = el.dataset; new Vue({
return new Vue({
el, el,
store: createStore(el.dataset), store: createStore(el.dataset),
provide: { userListsDocsPath }, provide: { userListsDocsPath },
render(h) { render(h) {
return h(EditUserList, {}); return h(EditUserList, {});
}, },
});
}); });
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