Merge branch 'data-listeners' into release

This commit is contained in:
Mike Bostock 2011-05-07 16:35:30 -07:00
Родитель b1b6b14143 09cbe4d82b
Коммит ef905bcf1b
3 изменённых файлов: 8 добавлений и 6 удалений

5
d3.js поставляемый
Просмотреть файл

@ -1582,12 +1582,13 @@ function d3_selection(groups) {
if (this[name]) this.removeEventListener(typo, this[name], capture);
if (listener) this.addEventListener(typo, this[name] = l, capture);
// wrapped event listener that preserves d, i
// wrapped event listener that preserves i
var node = this;
function l(e) {
var o = d3.event; // Events can be reentrant (e.g., focus).
d3.event = e;
try {
listener.call(this, d, i);
listener.call(this, node.__data__, i);
} finally {
d3.event = o;
}

4
d3.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

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

@ -538,12 +538,13 @@ function d3_selection(groups) {
if (this[name]) this.removeEventListener(typo, this[name], capture);
if (listener) this.addEventListener(typo, this[name] = l, capture);
// wrapped event listener that preserves d, i
// wrapped event listener that preserves i
var node = this;
function l(e) {
var o = d3.event; // Events can be reentrant (e.g., focus).
d3.event = e;
try {
listener.call(this, d, i);
listener.call(this, node.__data__, i);
} finally {
d3.event = o;
}