diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-12-13 09:26:44 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-13 09:26:44 +0000 |
commit | aa90e8ea5b025dc5de5887b2694e25745bf97e48 (patch) | |
tree | 9700aa80f7be849a0cab14e3313a35b0db41f2a4 /app/assets/javascripts/single_file_diff.js | |
parent | bcb14a0dbb729ab88ef5eb93ad7a4694ed8cac9d (diff) | |
download | gitlab-ce-aa90e8ea5b025dc5de5887b2694e25745bf97e48.tar.gz |
Export old code into es6 modules
Diffstat (limited to 'app/assets/javascripts/single_file_diff.js')
-rw-r--r-- | app/assets/javascripts/single_file_diff.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/single_file_diff.js b/app/assets/javascripts/single_file_diff.js index 3f811c59cb9..95e51bc4e7a 100644 --- a/app/assets/javascripts/single_file_diff.js +++ b/app/assets/javascripts/single_file_diff.js @@ -2,6 +2,7 @@ import FilesCommentButton from './files_comment_button'; import imageDiffHelper from './image_diff/helpers/index'; +import syntaxHighlight from './syntax_highlight'; const WRAPPER = '<div class="diff-content"></div>'; const LOADING_HTML = '<i class="fa fa-spinner fa-spin"></i>'; @@ -64,7 +65,7 @@ export default class SingleFileDiff { _this.loadingContent.hide(); if (data.html) { _this.content = $(data.html); - _this.content.syntaxHighlight(); + syntaxHighlight(_this.content); } else { _this.hasError = true; _this.content = $(ERROR_HTML); |