This commit is contained in:
Jason Davies 2011-05-05 21:46:49 +01:00
Родитель 9e51c6efa3
Коммит 09cbe4d82b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}