diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-11 17:09:34 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-11 19:48:25 +0200 |
| commit | cfb104ceac200cb338385c0f20017038050faf02 (patch) | |
| tree | 37a9a54aab3948ab3d32f06fefb7f61d4d4e9152 /scripts/model/graph.js | |
| parent | 5331427d3afc42c69ca1e2d859388069259726c2 (diff) | |
graph: add id to links (not used yet)
Diffstat (limited to 'scripts/model/graph.js')
| -rw-r--r-- | scripts/model/graph.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/model/graph.js b/scripts/model/graph.js index 3600d172..4b4b0069 100644 --- a/scripts/model/graph.js +++ b/scripts/model/graph.js @@ -274,10 +274,11 @@ function Graph(el) { } if (!found) { var link = { - "source": sourceNode, - "target": targetNode, - "name": name, - "state": state + source: sourceNode, + target: targetNode, + name: name, + state: state, + id: id_generator(), }; links.push(link); signal.signal(consts.APPLIED_GRAPH_DIFF, [{links: {add: [link]}}]); |
