# HG changeset patch # User Mads Kiilerich # Date 2014-09-08 13:38:56 # Node ID 362652e72e2996606eb7f325841f6120e3ffcc9e # Parent cd9bb3e07e689bec2c128feacd8117377dba6203 graph: don't draw edges to roots as "dead ends" Roots and dead ends both don't have outgoing edges. The difference is that roots will have the dot of the line - dead ends will not. 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 @@ -118,6 +118,8 @@ function BranchRenderer(canvas_id, conte break; } } + if (nextdata[0][0] == end) // this is a root - not a dead end + dead_end = false; } if (dead_end) {