The d3.rebind function from d3