Fix parsing of graph.js for eslint

The perl script extract.pl just checks for a line matching
'-- include data json--', so making it valid js is can be done just
fine.

Also fix eslint warning is graph.js.

Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2025-05-16 18:09:44 +02:00
parent 734386ce9f
commit dcda4187be
No known key found for this signature in database

View file

@ -68,7 +68,7 @@ function showReplayData()
}
});
$("#replayGraph").bind("plothover", function (event, pos, item) {
$("#replayGraph").bind("plothover", function(event, pos, item) {
$("#tooltip").remove();
if (!item)
return;
@ -104,7 +104,7 @@ function getReplayGraphData(displayedColumn)
if (filteredColumns.indexOf(label) != -1 ||
(displayedColumn == "bytes") != graphFormat.bytes.isColumn(label) ||
(displayedColumn == "garbageCollection") != (graphFormat.garbageCollection.isColumn(label)))
continue
continue;
var data = [];
for (var j = 0; j < replayData[i].data.length; ++j)
@ -138,8 +138,8 @@ function showTooltip(x, y, displayedColumn, label, turn, value)
function loadReplayGraphData()
{
replayData =
<!-- include data json -->
replayData =
"<!-- include data json -->";
}
$(loadReplayGraphData);