UNPKG

d3

Version:

A small, free JavaScript library for manipulating documents based on data.

10 lines (9 loc) 282 B
function d3_transition_each(callback) { for (var j = 0, m = this.length; j < m; j++) { for (var group = this[j], i = 0, n = group.length; i < n; i++) { var node = group[i]; if (node) callback.call(node = node.node, node.__data__, i, j); } } return this; }