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 Vuex from 'vuex';
import EditUserList from '~/user_lists/components/edit_user_list.vue';
......@@ -5,15 +7,13 @@ import createStore from '~/user_lists/store/edit';
Vue.use(Vuex);
document.addEventListener('DOMContentLoaded', () => {
const el = document.getElementById('js-edit-user-list');
const { userListsDocsPath } = el.dataset;
return new Vue({
el,
store: createStore(el.dataset),
provide: { userListsDocsPath },
render(h) {
return h(EditUserList, {});
},
});
const el = document.getElementById('js-edit-user-list');
const { userListsDocsPath } = el.dataset;
new Vue({
el,
store: createStore(el.dataset),
provide: { userListsDocsPath },
render(h) {
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