https://github.com/d3/d3
Raw File
Tip revision: 7dbb732a6f0d6e5a3bf2e3bfab1a93563621655e authored by Mike Bostock on 03 March 2013, 17:11:21 UTC
Merge branch '3.0.7'
Tip revision: 7dbb732
index.js
var globals = ["document", "window", "d3"],
    globalValues = {};

globals.forEach(function(g) {
  if (g in global) globalValues[g] = global[g];
});

require("./globals");
require("./d3");

module.exports = d3;

globals.forEach(function(g) {
  if (g in globalValues) global[g] = globalValues[g];
  else delete global[g];
});
back to top