summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-11-25 15:05:45 +0200
committerAlon Levy <alon@pobox.com>2014-11-25 15:05:45 +0200
commit012f24ae605e0add9dcec8000d7d6167b3207092 (patch)
treec1ff311c51f20b1b99f09f3cc121ab157fd62eb9 /src/model
parentee49c39e603a48e93465a389eff2b7b7d2b31f4a (diff)
core/create_node_from_spec: status initialization fix and remove double x&y initialization
Diffstat (limited to 'src/model')
-rw-r--r--src/model/core.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/model/core.js b/src/model/core.js
index fed28469..8575f7d0 100644
--- a/src/model/core.js
+++ b/src/model/core.js
@@ -65,10 +65,7 @@ define([], function() {
ret.type = node_spec.type;
// status
- if (undefined == node_spec.status) {
- node_spec.type = 'unknown';
- }
- ret.status = node_spec.status;
+ ret.status = node_spec.status || 'unknown';
// visual
ret.x = node_spec.x;
@@ -79,8 +76,6 @@ define([], function() {
ret.url = node_spec.url;
ret.start = node_spec.start;
ret.end = node_spec.end;
- ret.x = node_spec.x;
- ret.y = node_spec.y;
return ret;
}