From 012f24ae605e0add9dcec8000d7d6167b3207092 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 25 Nov 2014 15:05:45 +0200 Subject: core/create_node_from_spec: status initialization fix and remove double x&y initialization --- src/model/core.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/model/core.js') 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; } -- cgit v1.3.1