Rename "group" to "node".
This commit is contained in:
Родитель
9e51c6efa3
Коммит
09cbe4d82b
|
@ -527,12 +527,12 @@ function d3_selection(groups) {
|
||||||
if (listener) this.addEventListener(typo, this[name] = l, capture);
|
if (listener) this.addEventListener(typo, this[name] = l, capture);
|
||||||
|
|
||||||
// wrapped event listener that preserves i
|
// wrapped event listener that preserves i
|
||||||
var group = this;
|
var node = this;
|
||||||
function l(e) {
|
function l(e) {
|
||||||
var o = d3.event; // Events can be reentrant (e.g., focus).
|
var o = d3.event; // Events can be reentrant (e.g., focus).
|
||||||
d3.event = e;
|
d3.event = e;
|
||||||
try {
|
try {
|
||||||
listener.call(this, group.__data__, i);
|
listener.call(this, node.__data__, i);
|
||||||
} finally {
|
} finally {
|
||||||
d3.event = o;
|
d3.event = o;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче