summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-07-20 17:38:35 +0530
committerkushalpandya <kushal@gitlab.com>2017-07-20 17:38:35 +0530
commit4b45a1b322addc6622044830c31c387e899266a4 (patch)
tree3c35dc3c8ddd32376d950908484e0616b525aef6
parent083ad120705ff1e23e266aeb974dec1284f42322 (diff)
downloadgitlab-ce-4b45a1b322addc6622044830c31c387e899266a4.tar.gz
Initialize module on bundle load
-rw-r--r--app/assets/javascripts/protected_branches/index.js11
-rw-r--r--app/assets/javascripts/protected_tags/index.js11
2 files changed, 18 insertions, 4 deletions
diff --git a/app/assets/javascripts/protected_branches/index.js b/app/assets/javascripts/protected_branches/index.js
index f4744327402..c9e7af127d2 100644
--- a/app/assets/javascripts/protected_branches/index.js
+++ b/app/assets/javascripts/protected_branches/index.js
@@ -1,2 +1,9 @@
-export { default as ProtectedBranchCreate } from './protected_branch_create';
-export { default as ProtectedBranchEditList } from './protected_branch_edit_list';
+/* eslint-disable no-unused-vars */
+
+import ProtectedBranchCreate from './protected_branch_create';
+import ProtectedBranchEditList from './protected_branch_edit_list';
+
+$(() => {
+ const protectedBranchCreate = new ProtectedBranchCreate();
+ const protectedBranchEditList = new ProtectedBranchEditList();
+});
diff --git a/app/assets/javascripts/protected_tags/index.js b/app/assets/javascripts/protected_tags/index.js
index 61e7ba53862..b1618e24e49 100644
--- a/app/assets/javascripts/protected_tags/index.js
+++ b/app/assets/javascripts/protected_tags/index.js
@@ -1,2 +1,9 @@
-export { default as ProtectedTagCreate } from './protected_tag_create';
-export { default as ProtectedTagEditList } from './protected_tag_edit_list';
+/* eslint-disable no-unused-vars */
+
+import ProtectedTagCreate from './protected_tag_create';
+import ProtectedTagEditList from './protected_tag_edit_list';
+
+$(() => {
+ const protectedtTagCreate = new ProtectedTagCreate();
+ const protectedtTagEditList = new ProtectedTagEditList();
+});