summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/coverage_html.js
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/htmlfiles/coverage_html.js')
-rw-r--r--coverage/htmlfiles/coverage_html.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js
index b7fbd9c9..c1a41192 100644
--- a/coverage/htmlfiles/coverage_html.js
+++ b/coverage/htmlfiles/coverage_html.js
@@ -559,7 +559,9 @@ coverage.resize_scroll_markers = function () {
offsets = {};
// Calculate line offsets outside loop to prevent relayouts
- c.missed_lines.each(function(){offsets[this.id] = $(this).offset().top});
+ c.missed_lines.each(function() {
+ offsets[this.id] = $(this).offset().top;
+ });
c.missed_lines.each(function () {
var id_name = $(this).attr('id'),
line_top = Math.round(offsets[id_name] * marker_scale),