Show More
@@ -13,7 +13,7 b" document.addEventListener('DOMContentLoa" | |||||
13 | } |
|
13 | } | |
14 | // URL to complement with "linerange" query parameter |
|
14 | // URL to complement with "linerange" query parameter | |
15 | var targetUri = sourcelines.dataset.logurl; |
|
15 | var targetUri = sourcelines.dataset.logurl; | |
16 |
if (typeof targetUri === 'undefined') |
|
16 | if (typeof targetUri === 'undefined') { | |
17 | return; |
|
17 | return; | |
18 | } |
|
18 | } | |
19 |
|
19 | |||
@@ -114,7 +114,7 b" document.addEventListener('DOMContentLoa" | |||||
114 | if (parent === null) { |
|
114 | if (parent === null) { | |
115 | return null; |
|
115 | return null; | |
116 | } |
|
116 | } | |
117 | if (element.tagName == selectableTag && parent.isSameNode(sourcelines)) { |
|
117 | if (element.tagName === selectableTag && parent.isSameNode(sourcelines)) { | |
118 | return element; |
|
118 | return element; | |
119 | } |
|
119 | } | |
120 | return selectableParent(parent); |
|
120 | return selectableParent(parent); | |
@@ -182,7 +182,7 b" document.addEventListener('DOMContentLoa" | |||||
182 |
|
182 | |||
183 | // compute line range (startId, endId) |
|
183 | // compute line range (startId, endId) | |
184 | var endId = parseInt(endElement.id.slice(1)); |
|
184 | var endId = parseInt(endElement.id.slice(1)); | |
185 | if (endId == startId) { |
|
185 | if (endId === startId) { | |
186 | // clicked twice the same line, cancel and reset initial state |
|
186 | // clicked twice the same line, cancel and reset initial state | |
187 | // (CSS, event listener for selection start) |
|
187 | // (CSS, event listener for selection start) | |
188 | removeSelectedCSSClass(); |
|
188 | removeSelectedCSSClass(); |
General Comments 0
You need to be logged in to leave comments.
Login now