d3/d3-plugins — pull request #21 by RandomEtc (2012-10-26 01:22:14+00:00)
Title: .area instead of [2] for d3.simplify?

Testing with https://gist.github.com/3956433 the area was being output as a `null` in the end of each coordinate [ 0.0, 0.0, null ].

This commit uses a property on the array which `JSON.stringify` ignores.

Tests don't work out of the box for me on d3/d3-plugins master so I can't be sure I didn't break something. I'll look into that tomorrow if you don't like the look of this as it is.