diff options
author | Phil Hughes <me@iamphill.com> | 2017-12-13 09:26:45 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-13 09:26:45 +0000 |
commit | eacf99aff7a71d11b42f22c2e9399d1550052853 (patch) | |
tree | 9700aa80f7be849a0cab14e3313a35b0db41f2a4 /app/assets/javascripts/repo/components/repo_preview.vue | |
parent | bcb14a0dbb729ab88ef5eb93ad7a4694ed8cac9d (diff) | |
parent | aa90e8ea5b025dc5de5887b2694e25745bf97e48 (diff) | |
download | gitlab-ce-eacf99aff7a71d11b42f22c2e9399d1550052853.tar.gz |
Merge branch '28869-es6-modules' into 'master'
Export old code into es6 modules
See merge request gitlab-org/gitlab-ce!15787
Diffstat (limited to 'app/assets/javascripts/repo/components/repo_preview.vue')
-rw-r--r-- | app/assets/javascripts/repo/components/repo_preview.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/repo/components/repo_preview.vue b/app/assets/javascripts/repo/components/repo_preview.vue index 6ce9267f598..425c55fafb5 100644 --- a/app/assets/javascripts/repo/components/repo_preview.vue +++ b/app/assets/javascripts/repo/components/repo_preview.vue @@ -1,6 +1,7 @@ <script> /* global LineHighlighter */ import { mapGetters } from 'vuex'; +import syntaxHighlight from '../../syntax_highlight'; export default { computed: { @@ -13,7 +14,7 @@ export default { }, methods: { highlightFile() { - $(this.$el).find('.file-content').syntaxHighlight(); + syntaxHighlight($(this.$el).find('.file-content')); }, }, mounted() { |