diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-12-06 12:29:59 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-06 12:29:59 +0300 |
commit | 2018039536c3d31b6fa8d8e6bcd75d5cf322aba0 (patch) | |
tree | 15818406f97ae3970b3eed8da76868cc2e497d2e /app/assets/javascripts/image_diff/helpers/utils_helper.js | |
parent | 5d9585d1bde360c9bba2dc960523cbe1e648994f (diff) |
Export template selector as ES6 modules
Diffstat (limited to 'app/assets/javascripts/image_diff/helpers/utils_helper.js')
-rw-r--r-- | app/assets/javascripts/image_diff/helpers/utils_helper.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/image_diff/helpers/utils_helper.js b/app/assets/javascripts/image_diff/helpers/utils_helper.js index 96fc735e629..28d9a969143 100644 --- a/app/assets/javascripts/image_diff/helpers/utils_helper.js +++ b/app/assets/javascripts/image_diff/helpers/utils_helper.js @@ -1,7 +1,7 @@ import ImageBadge from '../image_badge'; import ImageDiff from '../image_diff'; import ReplacedImageDiff from '../replaced_image_diff'; -import '../../commit/image_file'; +import ImageFile from '../../commit/image_file'; export function resizeCoordinatesToImageElement(imageEl, meta) { const { x, y, width, height } = meta; @@ -81,7 +81,7 @@ export function initImageDiff(fileEl, canCreateNote, renderCommentBadge) { // ImageFile needs to be invoked before initImageDiff so that badges // can mount to the correct location - new gl.ImageFile(fileEl); // eslint-disable-line no-new + new ImageFile(fileEl); // eslint-disable-line no-new if (fileEl.querySelector('.diff-file .js-single-image')) { diff = new ImageDiff(fileEl, options); |