d3 / d3-color

Color spaces! RGB, HSL, Cubehelix, CIELAB, and more.
https://d3js.org/d3-color
ISC License
398 stars 91 forks source link

Fix prototype.constructor. #25

Closed mbostock closed 8 years ago

mbostock commented 8 years ago

The current definition obliterates the constructor property.

jonahwilliams commented 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.

mbostock commented 8 years ago

No need; I’m already doing it. But thank you.