From b2810baff09a653b3abd3908f67396a69532bcb4 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 18 Aug 2014 18:12:28 +0300 Subject: add a user setting field; does nothing except set graph.user --- scripts/rhizicore.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/rhizicore.js') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index ac3988a8..f17830c6 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -425,6 +425,11 @@ function myGraph(el) { } this.save_to_json = save_to_json; + function set_user(user) { + this.user = user; + console.log('new user: ' + user); + } + this.set_user = set_user; force = d3.layout.force() .distance(120) -- cgit v1.3.1