Commit 6882f4c0 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'jnnkl-remove-event-listener-branches' into 'master'

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!54959
parents a67aeaf1 aa277aad
import $ from 'jquery';
import NewBranchForm from '~/new_branch_form';
document.addEventListener(
'DOMContentLoaded',
() =>
new NewBranchForm(
$('.js-create-branch-form'),
JSON.parse(document.getElementById('availableRefs').innerHTML),
),
// eslint-disable-next-line no-new
new NewBranchForm(
$('.js-create-branch-form'),
JSON.parse(document.getElementById('availableRefs').innerHTML),
);
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