summaryrefslogtreecommitdiff
path: root/tests/base.js
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-11-19 15:31:49 +0200
committerAlon Levy <alon@pobox.com>2014-11-19 23:24:28 +0200
commitce1566f9fff4a2a85ff077da9912f5cbfaae9936 (patch)
treeeff8a356964046d7b3c2795b4aaf4dc182913f2b /tests/base.js
parent1cdebe0446685471bd23d565f063589921014f3b (diff)
wide source/target -> __src,__dst rename, align with DB model
Diffstat (limited to 'tests/base.js')
-rw-r--r--tests/base.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/base.js b/tests/base.js
index 7552c694..320edccf 100644
--- a/tests/base.js
+++ b/tests/base.js
@@ -30,7 +30,7 @@ function dump_graphviz(force) {
}
for (i = 0 ; i < links.length; ++i) {
var link = links[i];
- console.log(' ' + q(link.source.name) + ' -> ' + q(link.target.name) + ' [label=' + link.name + '];');
+ console.log(' ' + q(link.__src.name) + ' -> ' + q(link.__dst.name) + ' [label=' + link.name + '];');
}
console.log('}');
}
@@ -76,7 +76,7 @@ function nodes(window) {
function links(window) {
return window.require('rz_core').force.links().map(function (l) {
debugger;
- return [l.source.name, l.target.name, l.name];
+ return [l.__src.name, l.__dst.name, l.name];
});
}