mbostock/d3 — pull request #1044 by kriscarle (2013-01-31 20:31:44+00:00)
Title: jsdom globals deleted when loading as node module

This was failing:

```var d3 = require('d3');
d3.select("body").append("div"); //append fails because window.document is undefined```

The loops in index.js are trying to prevent global conflicts and/or keep multiple calls to require('d3') from being destructive? If so it should be safe to just delete the `delete global[g]` line?