diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-07 17:42:12 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 10:59:14 +0200 |
| commit | 1a079146de197bb49df5ceb7d6322a92981f22b6 (patch) | |
| tree | 50b66c5247a10bd9ad0f6d6617ec9bf95f1857de /src | |
| parent | 9a57d84952d21ee86ae4c5363b84d0932c56fdc1 (diff) | |
this hacks
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/graph.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/model/graph.js b/src/model/graph.js index fca38ef4..5b331c57 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -31,7 +31,7 @@ function Graph() { * * @param notify whether or not a presenter notification will be sent, default = true */ - this.__addNode = function(spec, notify) { + function __addNode(spec, notify) { var existing_node, node; @@ -72,6 +72,7 @@ function Graph() { return node; } + this.__addNode = __addNode; this._removeNodes = function(ns) { for (var j = 0; j < ns.length; j++) { @@ -277,7 +278,7 @@ function Graph() { this.addLink(src_id, dst_id, name, state, drop_conjugator_links); } - this.addLink = function(src_id, dst_id, name, state, drop_conjugator_links) { + function addLink(src_id, dst_id, name, state, drop_conjugator_links) { var src = findNode(src_id, null); var dst = findNode(dst_id, null); var found = findLink(src_id,dst_id,name); @@ -298,6 +299,7 @@ function Graph() { found.state = state; } } + this.addLink = addLink; this.editLink = function(src_id, dst_id, newname, newstate) { var link = findLink(src_id, dst_id, newname); |
