summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-03 16:11:20 +0200
committerAlon Levy <alon@pobox.com>2014-12-03 16:12:49 +0200
commit71e73684c5c9efe4302fc7f406eef785d9713449 (patch)
tree4a3dd7ec8d1f1c1eeaada167e891182e5e86a6ee /src/model
parent7599786a896f986d061565787d52265c1880127d (diff)
Fix TypeError: variable _ redeclares argument
Diffstat (limited to 'src/model')
-rw-r--r--src/model/graph.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index 19692073..b6ab95ea 100644
--- a/src/model/graph.js
+++ b/src/model/graph.js
@@ -32,8 +32,9 @@ function Graph() {
*/
this.__addNode = function(spec, notify) {
var existing_node,
- node,
- notify = undefined === notify ? true : notify;
+ node;
+
+ notify = undefined === notify ? true : notify;
if (undefined == spec.id) {
existing_node = findNodeByName(spec.name)
@@ -391,10 +392,9 @@ function Graph() {
}
this.removeLink = function(link) {
- var link,
- i;
+ var i;
- for ( i = 0 ; i < links.length; ++i ) {
+ for (i = 0 ; i < links.length; ++i) {
if (link.id !== undefined) {
if (link.id === links[i].id) {
links.splice(i, 1);