aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms-public.gathering.org/old/speedometer/d3-master/index.js
diff options
context:
space:
mode:
authorMagnus Kirø <magnuskiro@gmail.com>2016-03-22 11:14:46 +0100
committerMagnus Kirø <magnuskiro@gmail.com>2016-03-22 11:14:46 +0100
commit7806081670c8c9807fc8b6628b3d7a6eff841ded (patch)
tree082e522b99cd5b864a8963523f2b3889f6cff808 /web/nms-public.gathering.org/old/speedometer/d3-master/index.js
parente501dd7dd88bf52edd914a8f078141b91d53939b (diff)
parent2d19233ba32fd23ad7182d3cccb58cec9e377a75 (diff)
MERGE fix.
Diffstat (limited to 'web/nms-public.gathering.org/old/speedometer/d3-master/index.js')
-rw-r--r--web/nms-public.gathering.org/old/speedometer/d3-master/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/nms-public.gathering.org/old/speedometer/d3-master/index.js b/web/nms-public.gathering.org/old/speedometer/d3-master/index.js
new file mode 100644
index 0000000..d00e9bf
--- /dev/null
+++ b/web/nms-public.gathering.org/old/speedometer/d3-master/index.js
@@ -0,0 +1,9 @@
+var globals = {};
+
+// Stash old global.
+if ("d3" in global) globals.d3 = global.d3;
+
+module.exports = require("./d3");
+
+// Restore old global.
+if ("d3" in globals) global.d3 = globals.d3; else delete global.d3;