diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-02-16 14:33:01 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-02-16 14:33:01 -0600 |
commit | c7c211c28bc9e2594bbfa2b8f737b35b32e34934 (patch) | |
tree | 978de3aeb748d36935b4e0b1535cb3774776f8ac /app/assets/javascripts/pages/projects/merge_requests | |
parent | 93de4ebd9efe49d9cbf7678d77b2a1574f5b4e91 (diff) | |
download | gitlab-ce-c7c211c28bc9e2594bbfa2b8f737b35b32e34934.tar.gz |
Wrap pages in DOMContentLoaded
Diffstat (limited to 'app/assets/javascripts/pages/projects/merge_requests')
-rw-r--r-- | app/assets/javascripts/pages/projects/merge_requests/show/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/pages/projects/merge_requests/show/index.js b/app/assets/javascripts/pages/projects/merge_requests/show/index.js index 8552e49a9cf..07f3e579c97 100644 --- a/app/assets/javascripts/pages/projects/merge_requests/show/index.js +++ b/app/assets/javascripts/pages/projects/merge_requests/show/index.js @@ -8,7 +8,7 @@ import Diff from '~/diff'; import { handleLocationHash } from '~/lib/utils/common_utils'; import howToMerge from '~/how_to_merge'; -export default () => { +document.addEventListener('DOMContentLoaded', () => { new Diff(); // eslint-disable-line no-new new ZenMode(); // eslint-disable-line no-new @@ -25,4 +25,4 @@ export default () => { new ShortcutsIssuable(true); // eslint-disable-line no-new handleLocationHash(); howToMerge(); -}; +}); |