changeset 4509:a49953fb84bf

graph: minor cleanup of js
author Mads Kiilerich <madski@unity3d.com>
date Mon, 08 Sep 2014 13:38:56 +0200
parents 362652e72e29
children a40994692ddb
files kallithea/public/js/graph.js
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/js/graph.js	Mon Sep 08 13:38:56 2014 +0200
+++ b/kallithea/public/js/graph.js	Mon Sep 08 13:38:56 2014 +0200
@@ -84,8 +84,10 @@
 		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 @@
 				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;