summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-29 21:35:02 +0300
committerAlon Levy <alon@pobox.com>2015-03-29 21:35:02 +0300
commitc6cfc6994dff857b6271039994afa67a5d907525 (patch)
treebc11eb031e4a8ed42ad5ed1b727930b021924abd /src/client
parentcf907134bb5a07e2a8eecce4207f61f85a3453e9 (diff)
client/view/graph_view: allow links with x/y that is zero
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view/graph_view.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index f01a56b1..60e6cc2c 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -882,8 +882,10 @@ function GraphView(spec) {
var d_val,
ghost;
- util.assert(d.__src && d.__dst && d.__src.x && d.__src.y &&
- d.__dst.x && d.__dst.y, "missing src and dst points");
+ util.assert(d.__src && d.__dst &&
+ d.__src.x !== undefined && d.__src.y !== undefined &&
+ d.__dst.x !== undefined && d.__dst.y !== undefined,
+ "missing src and dst points");
var src = same_zoom(d.__src),
dst = same_zoom(d.__dst);