summaryrefslogtreecommitdiff
path: root/src/client/model/diff.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-06 21:40:40 +0200
committerAlon Levy <alon@pobox.com>2015-01-06 21:40:40 +0200
commit546ee33efaaa0df3e121a7ba5c16bc3aa1a0aeeb (patch)
treef5e5743f5d9cab413efae79f4a867161cd955e45 /src/client/model/diff.js
parenta7d4e65fa944e2174f6f20a20c3ad0b37c2c0304 (diff)
client: adapt to new node_id_set_add and link_id_set_add, renames all around
Diffstat (limited to 'src/client/model/diff.js')
-rw-r--r--src/client/model/diff.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/model/diff.js b/src/client/model/diff.js
index 4ad0d169..c41fbc53 100644
--- a/src/client/model/diff.js
+++ b/src/client/model/diff.js
@@ -31,8 +31,8 @@ define([],
*/
function Topo_Diff(obj_spec) {
- this.link_set_rm = obj_spec.link_set_rm;
- this.node_set_rm = obj_spec.node_set_rm;
+ this.link_id_set_rm = obj_spec.link_id_set_rm;
+ this.node_id_set_rm = obj_spec.node_id_set_rm;
this.node_set_add = obj_spec.node_set_add;
this.link_set_add = obj_spec.link_set_add;
@@ -42,7 +42,7 @@ define([],
}
Topo_Diff.prototype.for_each_node_rm = function(callback, this_arg) {
- this.node_set_rm.forEach(callback, this_arg);
+ this.node_id_set_rm.forEach(callback, this_arg);
}
Topo_Diff.prototype.for_each_link_add = function(callback, this_arg) {
@@ -50,7 +50,7 @@ define([],
}
Topo_Diff.prototype.for_each_link_rm = function(callback, this_arg) {
- this.link_set_rm.forEach(callback, this_arg);
+ this.link_id_set_rm.forEach(callback, this_arg);
}
/**
@@ -140,8 +140,8 @@ define([],
undefined == obj_spec && (obj_spec = {});
undefined == obj_spec.node_set_add && (obj_spec.node_set_add = []);
undefined == obj_spec.link_set_add && (obj_spec.link_set_add = []);
- undefined == obj_spec.node_set_rm && (obj_spec.node_set_rm = []);
- undefined == obj_spec.link_set_rm && (obj_spec.link_set_rm = []);
+ undefined == obj_spec.node_id_set_rm && (obj_spec.node_id_set_rm = []);
+ undefined == obj_spec.link_id_set_rm && (obj_spec.link_id_set_rm = []);
ret = new Topo_Diff(obj_spec);
return ret;
}