Skip to content
Snippets Groups Projects
Unverified Commit 19f14cfe authored by Luke Bennett's avatar Luke Bennett
Browse files

remove sideeffects, init per page

parent eae553f8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,7 +5,6 @@ import { mouseenter, debouncedMouseleave, togglePopover } from './shared/popover
 
export default class Milestone {
constructor() {
Milestone.initDeprecationMessage();
this.bindTabsSwitching();
 
// Load merge request tab if it is active
Loading
Loading
Loading
Loading
@@ -6,4 +6,6 @@ document.addEventListener('DOMContentLoaded', () => {
new Milestone(); // eslint-disable-line no-new
new Sidebar(); // eslint-disable-line no-new
new MountMilestoneSidebar(); // eslint-disable-line no-new
Milestone.initDeprecationMessage();
});
import initMilestonesShow from '~/pages/milestones/shared/init_milestones_show';
import Milestone from '~/milestone';
 
document.addEventListener('DOMContentLoaded', initMilestonesShow);
document.addEventListener('DOMContentLoaded', () => {
initMilestonesShow();
Milestone.initDeprecationMessage();
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment