From 001c904f28566b2fb3575b5a79871cedf94ea289 Mon Sep 17 00:00:00 2001 From: "Luke \"Jared\" Bennett" Date: Thu, 8 Jun 2017 17:15:34 +0100 Subject: Remove inclusive JS imports --- app/assets/javascripts/close_reopen_report_toggle.js | 4 ++-- app/assets/javascripts/issue.js | 4 ++-- app/assets/javascripts/merge_request.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/assets/javascripts/close_reopen_report_toggle.js b/app/assets/javascripts/close_reopen_report_toggle.js index 0824f124984..43467a7e277 100644 --- a/app/assets/javascripts/close_reopen_report_toggle.js +++ b/app/assets/javascripts/close_reopen_report_toggle.js @@ -1,4 +1,4 @@ -import * as DropLab from './droplab/drop_lab'; +import DropLab from './droplab/drop_lab'; import ISetter from './droplab/plugins/input_setter'; // Todo: Remove this when fixing issue in input_setter plugin @@ -15,7 +15,7 @@ class CloseReopenReportToggle { this.reopenItem = this.dropdownList.querySelector('.reopen-item'); this.closeItem = this.dropdownList.querySelector('.close-item'); - this.droplab = new DropLab.default(); + this.droplab = new DropLab(); const config = this.setConfig(); diff --git a/app/assets/javascripts/issue.js b/app/assets/javascripts/issue.js index b61570e88e0..62ffde6c93c 100644 --- a/app/assets/javascripts/issue.js +++ b/app/assets/javascripts/issue.js @@ -6,7 +6,7 @@ import '~/lib/utils/text_utility'; import './flash'; import './task_list'; import CreateMergeRequestDropdown from './create_merge_request_dropdown'; -import * as CloseReopenReportToggle from './close_reopen_report_toggle'; +import CloseReopenReportToggle from './close_reopen_report_toggle'; class Issue { constructor() { @@ -98,7 +98,7 @@ class Issue { const dropdownList = container.querySelector('.js-issuable-close-menu'); const button = container.querySelector('.js-issuable-close-button'); - this.closeReopenReportToggle = new CloseReopenReportToggle.default({ + this.closeReopenReportToggle = new CloseReopenReportToggle({ dropdownTrigger, dropdownList, button, diff --git a/app/assets/javascripts/merge_request.js b/app/assets/javascripts/merge_request.js index eebf45aa581..412d68dc37a 100644 --- a/app/assets/javascripts/merge_request.js +++ b/app/assets/javascripts/merge_request.js @@ -4,7 +4,7 @@ import 'vendor/jquery.waitforimages'; import './task_list'; import './merge_request_tabs'; -import * as CloseReopenReportToggle from './close_reopen_report_toggle'; +import CloseReopenReportToggle from './close_reopen_report_toggle'; (function() { this.MergeRequest = (function() { @@ -130,7 +130,7 @@ import * as CloseReopenReportToggle from './close_reopen_report_toggle'; const dropdownList = container.querySelector('.js-issuable-close-menu'); const button = container.querySelector('.js-issuable-close-button'); - const closeReopenReportToggle = new CloseReopenReportToggle.default({ + const closeReopenReportToggle = new CloseReopenReportToggle({ dropdownTrigger, dropdownList, button, -- cgit v1.2.1