diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-02 15:51:15 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-10-14 10:28:59 +0200 |
commit | 15b2160babc5c35ede960b7d0e133acbec8c6c51 (patch) | |
tree | 6475ad0602bbe4d6dae895aae43d331726ab8c33 /server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js | |
parent | e51e9c9eb0145ea5e9d40453554c456585b79936 (diff) | |
download | sonarqube-15b2160babc5c35ede960b7d0e133acbec8c6c51.tar.gz sonarqube-15b2160babc5c35ede960b7d0e133acbec8c6c51.zip |
improve the web build system, introduce gulp and browserify
Diffstat (limited to 'server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js b/server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js index 0a1537002fd..417f98663a5 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js +++ b/server/sonar-web/src/main/js/components/source-viewer/helpers/code-with-issue-locations-helper.js @@ -1,4 +1,5 @@ import _ from 'underscore'; +import Handlebars from 'hbsfy/runtime'; /** * Intersect two ranges @@ -113,14 +114,13 @@ function doTheStuff (code, issueLocations, optionalClassName) { } -if (typeof Handlebars !== 'undefined') { - /** - * Handlebars helper to highlight issue locations in the source code - */ - Handlebars.registerHelper('codeWithIssueLocations', function (code, issueLocations) { - return doTheStuff(code, issueLocations); - }); -} +/** + * Handlebars helper to highlight issue locations in the source code + */ +Handlebars.registerHelper('codeWithIssueLocations', function (code, issueLocations) { + return doTheStuff(code, issueLocations); +}); + export default doTheStuff; |