Consistent brace style

This commit is contained in:
Cody 2011-08-23 11:50:42 -06:00
parent 4b66715613
commit 8995a60602

View File

@ -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) {