File size: 380 Bytes
e7b2eb4
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import "selection";

d3_selectionPrototype.html = function(value) {
  return arguments.length
      ? this.each(typeof value === "function"
      ? function() { var v = value.apply(this, arguments); this.innerHTML = v == null ? "" : v; } : value == null
      ? function() { this.innerHTML = ""; }
      : function() { this.innerHTML = value; })
      : this.node().innerHTML;
};