Skip to content

Commit

Permalink
Minor optimisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Jul 15, 2011
1 parent 06ecb61 commit 1a456a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ function d3_selection(groups) {
for (i = 0; i < n; i++) {
key = join.call(node = group[i], node.__data__, i);
if (key in nodeByKey) {
exitNodes[j++] = group[i]; // duplicate key
exitNodes[j++] = node; // duplicate key
} else {
nodeByKey[key] = node;
}
Expand Down
Loading

0 comments on commit 1a456a9

Please sign in to comment.