diff options
| author | Alon Levy <alon@pobox.com> | 2014-08-18 18:12:28 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-08-18 18:12:28 +0300 |
| commit | b2810baff09a653b3abd3908f67396a69532bcb4 (patch) | |
| tree | f9d546b975c251528ceba2adf1dae2d0130a2415 /scripts/rhizicore.js | |
| parent | 8fae9f67951a369ff38d958f19c0712328126903 (diff) | |
add a user setting field; does nothing except set graph.user
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 5 |
1 files changed, 5 insertions, 0 deletions
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) |
