summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-12-03 15:06:44 +0200
committerLV-426 <lv-426@taproot.org.il>2014-12-03 15:06:44 +0200
commite9ca35d611b2a11e0cbc66c7a92848178ea19702 (patch)
tree2defcd726a6bd819ab89c1e387cb695b009eb304 /src/model
parent1a7e20647970ca50bbe00713f4da4094630a219e (diff)
update util read node,link
Diffstat (limited to 'src/model')
-rw-r--r--src/model/util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/util.js b/src/model/util.js
index 43fa66db..af7c77b3 100644
--- a/src/model/util.js
+++ b/src/model/util.js
@@ -14,7 +14,7 @@ function($, model_diff) {
var ret;
ret = $.extend({
- 'type' : n_raw['__type'].toLowerCase(), // discard all
+ 'type' : n_raw['__label_set'][0].toLowerCase(), // discard all
// labels except
'state' : 'temp',
}, n_raw);
@@ -45,9 +45,9 @@ function($, model_diff) {
var ret;
ret = $.extend({
- 'sourceId' : l_raw['__src'],
- 'targetId' : l_raw['__dst'],
- 'type' : l_raw['__type'].toLowerCase(), // discard all
+ '__src_id' : l_raw['__src'],
+ '__dst_id' : l_raw['__dst'],
+ 'type' : l_raw['__label_set'][0].toLowerCase(), // discard all
// labels except
'state' : 'temp',
}, l_raw);