https://github.com/d3/d3
Raw File
Tip revision: eb384180d0e25278e20cfe35d574cc376dfdaf62 authored by Mike Bostock on 20 May 2013, 20:36:44 UTC
Revert "Define rangeBand in context of rangePoints."
Tip revision: eb38418
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