-
Mike Bostock authored
Rather than converting closed polygons to open polygons on input (which could potentially be destructive), tweak the polygon methods slightly so that they work on either input. This commit also changes d3.geom.polygon to use a prototype, much like d3.selection, rather than creating every method as a closure. This makes it much faster to construct a polygon.
fdd6c620