summaryrefslogtreecommitdiff
path: root/src/client/model/graph.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/model/graph.js')
-rw-r--r--src/client/model/graph.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js
index 5beca9e0..a0717bd3 100644
--- a/src/client/model/graph.js
+++ b/src/client/model/graph.js
@@ -83,12 +83,11 @@ function Graph(spec) {
*
* @return node if node was actually added
*/
- // FIXME: is this a good idea? i.e. changing API based on constructor? just in dynamic city
- if (temporary) {
- this.addTempNode = function(spec) {
+ this.addTempNode = function(spec) {
+ if (temporary) {
return this.__addNode(spec);
- };
- }
+ }
+ };
var nodes_to_touched_links = function (node_id_set) {
var touched_links = [];