diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-06-08 17:15:34 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-07 14:57:00 +0100 |
commit | 001c904f28566b2fb3575b5a79871cedf94ea289 (patch) | |
tree | 48d73ad38cddf7ff193118baf2a28cc99cda2f67 /app/assets | |
parent | 421e41c9ce3abdd843079c1eb022cad8974d36ff (diff) | |
download | gitlab-ce-001c904f28566b2fb3575b5a79871cedf94ea289.tar.gz |
Remove inclusive JS imports
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/close_reopen_report_toggle.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/issue.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/merge_request.js | 4 |
3 files changed, 6 insertions, 6 deletions
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, |