diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-11 01:30:44 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-13 14:41:32 -0500 |
commit | 8796d17a2670888d8fb975e0b327ecaa362c6f52 (patch) | |
tree | f6a35be7b0adf33fd000c762b048a0e88fe380bb /app/assets/javascripts/ci_lint_editor.js | |
parent | 1585608bdcf932b58d301a7943c01ea824ea524e (diff) | |
download | gitlab-ce-8796d17a2670888d8fb975e0b327ecaa362c6f52.tar.gz |
remove IIFEs in preparation for ES module refactor
Diffstat (limited to 'app/assets/javascripts/ci_lint_editor.js')
-rw-r--r-- | app/assets/javascripts/ci_lint_editor.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/app/assets/javascripts/ci_lint_editor.js b/app/assets/javascripts/ci_lint_editor.js index 56ffaa765a8..dd4a08a2f31 100644 --- a/app/assets/javascripts/ci_lint_editor.js +++ b/app/assets/javascripts/ci_lint_editor.js @@ -1,18 +1,17 @@ -(() => { - window.gl = window.gl || {}; - class CILintEditor { - constructor() { - this.editor = window.ace.edit('ci-editor'); - this.textarea = document.querySelector('#content'); +window.gl = window.gl || {}; - this.editor.getSession().setMode('ace/mode/yaml'); - this.editor.on('input', () => { - const content = this.editor.getSession().getValue(); - this.textarea.value = content; - }); - } +class CILintEditor { + constructor() { + this.editor = window.ace.edit('ci-editor'); + this.textarea = document.querySelector('#content'); + + this.editor.getSession().setMode('ace/mode/yaml'); + this.editor.on('input', () => { + const content = this.editor.getSession().getValue(); + this.textarea.value = content; + }); } +} - gl.CILintEditor = CILintEditor; -})(); +gl.CILintEditor = CILintEditor; |