diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-02-28 00:47:34 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2018-02-28 00:47:34 +0300 |
commit | 254c43fbb1a614b772599ac5acd7dc5d1eca6d7b (patch) | |
tree | c3f22e9ffadb2fae3846066dfcccc7772ad056d0 /app/assets/javascripts/snippet | |
parent | 111962891b369710d9604567e94fdbe682d16931 (diff) |
Remove snippet bundle webpack entry point
Diffstat (limited to 'app/assets/javascripts/snippet')
-rw-r--r-- | app/assets/javascripts/snippet/snippet_bundle.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/app/assets/javascripts/snippet/snippet_bundle.js b/app/assets/javascripts/snippet/snippet_bundle.js index a98403f4cf2..ce0fd3f6ff8 100644 --- a/app/assets/javascripts/snippet/snippet_bundle.js +++ b/app/assets/javascripts/snippet/snippet_bundle.js @@ -1,12 +1,9 @@ -/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, max-len */ /* global ace */ -(function() { - $(function() { - var editor = ace.edit("editor"); +export default () => { + const editor = ace.edit('editor'); - $(".snippet-form-holder form").on('submit', function() { - $(".snippet-file-content").val(editor.getValue()); - }); + $('.snippet-form-holder form').on('submit', () => { + $('.snippet-file-content').val(editor.getValue()); }); -}).call(window); +}; |