mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 18:28:21 -06:00
Fixed defects reported by Travis tests
This commit is contained in:
+2
-2
@@ -114,7 +114,7 @@ define(function (require) {
|
||||
});
|
||||
|
||||
this.outputEditor.onMouseMove(function (e) {
|
||||
if (self.settings.hoverShowSource == true) {
|
||||
if (self.settings.hoverShowSource === true) {
|
||||
var desiredLine = e.target.position.lineNumber - 1;
|
||||
self.eventHub.emit('editorSelectLine', self.sourceEditorId, self.assembly[desiredLine].source);
|
||||
}
|
||||
@@ -501,7 +501,7 @@ define(function (require) {
|
||||
};
|
||||
|
||||
Compiler.prototype.onCompilerSelectLine = function (id, lineNum) {
|
||||
if (id === this.id && lineNum != null) {
|
||||
if (id === this.id && lineNum !== null) {
|
||||
this.outputEditor.setSelection({positionColumn: 0, positionLineNumber: lineNum + 1, selectionStartColumn: 0,
|
||||
selectionStartLineNumber: lineNum});
|
||||
}
|
||||
|
||||
+2
-2
@@ -114,7 +114,7 @@ define(function (require) {
|
||||
});
|
||||
|
||||
this.editor.onMouseMove(function (e) {
|
||||
if (self.settings.hoverShowSource == true)
|
||||
if (self.settings.hoverShowSource === true)
|
||||
tryCompilerSelectLine(e.target.position.lineNumber);
|
||||
});
|
||||
|
||||
@@ -324,7 +324,7 @@ define(function (require) {
|
||||
};
|
||||
|
||||
Editor.prototype.onEditorSelectLine = function (id, lineNum) {
|
||||
if (id === this.id && lineNum != null) {
|
||||
if (id === this.id && lineNum !== null) {
|
||||
this.editor.setSelection({positionColumn: 0, positionLineNumber: lineNum + 1, selectionStartColumn: 0,
|
||||
selectionStartLineNumber: lineNum});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user