Closed mbostock closed 8 years ago
I might be wrong, but this should be as easy as adding a few lines like
Color.prototype.constructor = Color;
after each one of the prototype assignments. I'd be happy to open a PR to add them.
No need; I’m already doing it. But thank you.
The current definition obliterates the
constructor
property.