1
0
Fork 0

GraphViewer: Nodes are now correctly reshaped if new events are bound

This commit is contained in:
Michael Hackstein 2013-03-25 20:43:13 +01:00
parent d8c3e7f464
commit 85420d7172
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*jslint indent: 2, nomen: true, maxlen: 100, white: true plusplus: true */
/*global _, d3*/
/*global $, _, d3*/
////////////////////////////////////////////////////////////////////////////////
/// @brief Graph functionality
///
@ -84,6 +84,7 @@ function NodeShaper(parent, flags, idfunc) {
.selectAll(".node")
.attr("class", "node") // node is CSS class that might be edited
.attr("id",idFunction);
$(".node").empty();
additionalShaping(node);
};
@ -174,7 +175,6 @@ function NodeShaper(parent, flags, idfunc) {
data.exit().remove();
return node;
}
console.log("Evil kniewil");
};
self.updateNodes = function () {