mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
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:
parent
734386ce9f
commit
dcda4187be
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue