# HG changeset patch # User Mads Kiilerich # Date 2014-09-08 13:38:56 # Node ID a49953fb84bf09301c6cc902b8f03fce5172e17b # Parent 362652e72e2996606eb7f325841f6120e3ffcc9e graph: minor cleanup of js diff --git a/kallithea/public/js/graph.js b/kallithea/public/js/graph.js --- a/kallithea/public/js/graph.js +++ b/kallithea/public/js/graph.js @@ -84,8 +84,10 @@ function BranchRenderer(canvas_id, conte for (var i=0; i < data.length; ++i) { var row = document.getElementById("chg_"+idx); - if (row == null) + if (row == null) { + console.log("error: row chg_"+idx+" not found"); continue; + } var next = document.getElementById("chg_"+(idx+1)); var extra = 0; @@ -111,7 +113,6 @@ function BranchRenderer(canvas_id, conte if (next != null) { nextdata = data[i+1]; next_l = nextdata[1]; - found = false; for (var k=0; k < next_l.length; ++k) { if (next_l[k][0] == end) { dead_end = false;