d3_transitionPrototype.delay = function(value) { var groups = this; return groups.each(typeof value === "function" ? function(d, i, j) { groups[j][i].delay = +value.apply(this, arguments); } : (value = +value, function(d, i, j) { groups[j][i].delay = value; })); };