From b79c338d2c8b28dd0d50f655082399afb5e48fd4 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 4 Jun 2012 18:25:58 +0200 Subject: [PATCH] fix handling of empty hashstr --- html/force.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/force.js b/html/force.js index d28a4d5..8e8b696 100644 --- a/html/force.js +++ b/html/force.js @@ -232,7 +232,9 @@ function render_graph(type) { node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; }); }); - show_node(hashstr); + + if (hashstr.length != 0) + show_node(hashstr); }); }