Skip to content

Commit

Permalink
Rename "group" to "node".
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed May 5, 2011
1 parent 9e51c6e commit 09cbe4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/selection.js
Expand Up @@ -527,12 +527,12 @@ function d3_selection(groups) {
if (listener) this.addEventListener(typo, this[name] = l, capture);

// wrapped event listener that preserves i
var group = this;
var node = this;
function l(e) {
var o = d3.event; // Events can be reentrant (e.g., focus).
d3.event = e;
try {
listener.call(this, group.__data__, i);
listener.call(this, node.__data__, i);
} finally {
d3.event = o;
}
Expand Down

0 comments on commit 09cbe4d

Please sign in to comment.