diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2019-01-18 13:18:36 +0100 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2019-01-18 13:18:36 +0100 |
commit | e51a0df39182c8121fcbc2857cef6f0829f0f70b (patch) | |
tree | 8a79ae081cb83fe321c145a4238bc05d52046af4 | |
parent | 8edfbe3d8de3a7cbae28f5295f3f03287c3599cf (diff) | |
download | gitlab-ce-e51a0df39182c8121fcbc2857cef6f0829f0f70b.tar.gz |
Changed function setup
-rw-r--r-- | app/assets/javascripts/frequent_items/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/frequent_items/index.js b/app/assets/javascripts/frequent_items/index.js index 7f90f673a82..6263acbab8e 100644 --- a/app/assets/javascripts/frequent_items/index.js +++ b/app/assets/javascripts/frequent_items/index.js @@ -17,7 +17,7 @@ const frequentItemDropdowns = [ }, ]; -function initFrequentItemDropdowns() { +const initFrequentItemDropdowns = () => { frequentItemDropdowns.forEach(dropdown => { const { namespace, key } = dropdown; const el = document.getElementById(`js-${namespace}-dropdown`); @@ -66,7 +66,7 @@ function initFrequentItemDropdowns() { }, }); }); -} +}; document.addEventListener('DOMContentLoaded', () => { requestIdleCallback(initFrequentItemDropdowns); |