https://github.com/d3/d3
Raw File
Tip revision: d1d71e168904d00a8201fb4052561f3087733c2c authored by Mike Bostock on 15 May 2013, 23:11:34 UTC
Bump version.
Tip revision: d1d71e1
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