Commit aa277aad authored by Jannik Lehmann's avatar Jannik Lehmann

Remove obsolete DOMContentLoadedEventListener

parent 643b55f6
import $ from 'jquery'; import $ from 'jquery';
import NewBranchForm from '~/new_branch_form'; import NewBranchForm from '~/new_branch_form';
document.addEventListener( // eslint-disable-next-line no-new
'DOMContentLoaded', new NewBranchForm(
() => $('.js-create-branch-form'),
new NewBranchForm( JSON.parse(document.getElementById('availableRefs').innerHTML),
$('.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