summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/dispatcher.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-10-27 09:05:03 +0000
committerPhil Hughes <me@iamphill.com>2017-10-27 09:05:03 +0000
commitfed51d1eaacc0d9e327cb2b67b19848d6cafd666 (patch)
treed12b5c542cb2a403014a33071f06247728940d45 /app/assets/javascripts/dispatcher.js
parenta1aa4f00c27afdd3faf5a551b24bfe1555533a4d (diff)
downloadgitlab-ce-fed51d1eaacc0d9e327cb2b67b19848d6cafd666.tar.gz
Remove groups_select from global namespace & simplifies the code
Diffstat (limited to 'app/assets/javascripts/dispatcher.js')
-rw-r--r--app/assets/javascripts/dispatcher.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index f20162c48e9..970e83c0ecb 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -13,7 +13,7 @@ import GroupLabelSubscription from './group_label_subscription';
/* global LineHighlighter */
import BuildArtifacts from './build_artifacts';
import CILintEditor from './ci_lint_editor';
-/* global GroupsSelect */
+import groupsSelect from './groups_select';
/* global Search */
/* global Admin */
/* global NamespaceSelects */
@@ -414,7 +414,7 @@ import Diff from './diff';
break;
case 'projects:project_members:index':
memberExpirationDate('.js-access-expiration-date-groups');
- new GroupsSelect();
+ groupsSelect();
memberExpirationDate();
new Members();
new UsersSelect();