diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-06-30 16:42:12 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-07-06 10:10:02 -0500 |
commit | 6149c2e2305fe305f38c56c72ad4cf4c4b82dfe9 (patch) | |
tree | 328824c6bd6c591f33705d87a27d1487640e726f /app/assets/javascripts/visibility_select.js | |
parent | f890939609181d2a496d0700e98e0d994121d337 (diff) | |
download | gitlab-ce-6149c2e2305fe305f38c56c72ad4cf4c4b82dfe9.tar.gz |
refactor VisibilitySelect class to ES module syntax
Diffstat (limited to 'app/assets/javascripts/visibility_select.js')
-rw-r--r-- | app/assets/javascripts/visibility_select.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/visibility_select.js b/app/assets/javascripts/visibility_select.js index b6bbbaa0936..0c928d0d5f6 100644 --- a/app/assets/javascripts/visibility_select.js +++ b/app/assets/javascripts/visibility_select.js @@ -1,4 +1,4 @@ -class VisibilitySelect { +export default class VisibilitySelect { constructor(container) { if (!container) throw new Error('VisibilitySelect requires a container element as argument 1'); this.container = container; @@ -19,6 +19,3 @@ class VisibilitySelect { this.helpBlock.textContent = this.select.querySelector('option:checked').dataset.description; } } - -window.gl = window.gl || {}; -window.gl.VisibilitySelect = VisibilitySelect; |