Consistent brace style
This commit is contained in:
parent
4b66715613
commit
8995a60602
|
@ -126,8 +126,7 @@ Graph.prototype.removeNode = function(node) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// removes edges associated with a given node
|
// removes edges associated with a given node
|
||||||
Graph.prototype.detachNode = function(node)
|
Graph.prototype.detachNode = function(node) {
|
||||||
{
|
|
||||||
var tmpEdges = this.edges.slice();
|
var tmpEdges = this.edges.slice();
|
||||||
tmpEdges.forEach(function(e) {
|
tmpEdges.forEach(function(e) {
|
||||||
if (e.source.id === node.id || e.target.id === node.id) {
|
if (e.source.id === node.id || e.target.id === node.id) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user