diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-05 21:23:31 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-05 21:23:31 +0300 |
commit | 48e4991907aa9046c25323af53afc3b7eaa895c4 (patch) | |
tree | da2fc72eeb92f3b4a94d4a64062f32c796f82228 /app/assets/javascripts/sidebar/sidebar_bundle.js | |
parent | 933447e0da19f9d0be8574185500cabb5d7ab012 (diff) |
Add sidebar specs
Diffstat (limited to 'app/assets/javascripts/sidebar/sidebar_bundle.js')
-rw-r--r-- | app/assets/javascripts/sidebar/sidebar_bundle.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/sidebar/sidebar_bundle.js b/app/assets/javascripts/sidebar/sidebar_bundle.js index 2ce53c2ed30..2b02af87d8a 100644 --- a/app/assets/javascripts/sidebar/sidebar_bundle.js +++ b/app/assets/javascripts/sidebar/sidebar_bundle.js @@ -4,7 +4,7 @@ import sidebarAssignees from './components/assignees/sidebar_assignees'; import Mediator from './sidebar_mediator'; -document.addEventListener('DOMContentLoaded', () => { +function domContentLoaded() { const mediator = new Mediator(gl.sidebarOptions); mediator.fetch(); @@ -17,5 +17,8 @@ document.addEventListener('DOMContentLoaded', () => { } new Vue(sidebarTimeTracking).$mount('#issuable-time-tracker'); -}); +} +document.addEventListener('DOMContentLoaded', domContentLoaded); + +export default domContentLoaded; |