1
0
Fork 0

jslinted code

This commit is contained in:
scottashton 2014-06-16 15:03:54 +02:00
parent b8d2c7f0f6
commit 252d320795
2 changed files with 9 additions and 6 deletions

View File

@ -30,7 +30,6 @@
this.pageid = pageid;
this.type = type;
this.collection.getDocuments(colid, pageid);
console.log()
this.collectionModel = this.collectionsStore.get(colid);
},

View File

@ -4699,11 +4699,15 @@ function TRAVERSAL_DIJSKTRA_VISITOR (config, result, vertex, path) {
while (positionFrom !== positionTo) {
var edgePosition;
if (positionFrom > positionTo) {
edgePosition = positionFrom-1
edgePosition = positionFrom-1;
} else {
edgePosition = positionFrom
edgePosition = positionFrom;
}
if (positionFrom > positionTo) {
positionFrom = positionFrom -1;
} else {
positionFrom ++;
}
positionFrom > positionTo ? positionFrom = positionFrom -1 : positionFrom ++;
pathNew.vertices.push(path.vertices[positionFrom]);
pathNew.edges.push(path.edges[edgePosition]);
if (config.weight) {
@ -4997,8 +5001,8 @@ function CALCULATE_SHORTEST_PATHES_WITH_DIJKSTRA (graphName, graphData, options)
if (TO_ID(v) === f.startVertex && TO_ID(t) === f.vertex._id) {
result.push(f);
}
calculated[JSON.stringify({ from : f.startVertex, to : f.vertex._id})] = f
})
calculated[JSON.stringify({ from : f.startVertex, to : f.vertex._id})] = f;
});
});
});
result.forEach(function (r) {