Fixed Linting Error + Error with Line Highlighter found in Test

This commit is contained in:
Tim Zallmann 2017-10-05 15:14:33 +02:00
parent 8262cb2f4e
commit eda9e6b65b
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ LineHighlighter.prototype.bindEvents = function() {
LineHighlighter.prototype.highlightHash = function(newHash) {
let range;
if (newHash) this._hash = newHash;
if (newHash && typeof newHash === 'string') this._hash = newHash;
this.clearHighlight();

View file

@ -28,8 +28,8 @@ export default {
this.highlightFile();
});
},
activeLine(e) {
this.lineHighlighter.highlightHash('#L' + Store.activeLine);
activeLine() {
this.lineHighlighter.highlightHash(`#L${Store.activeLine}`);
},
},
};