Skip to content

Instantly share code, notes, and snippets.

@tlkahn
Created December 24, 2015 06:14
Show Gist options
  • Save tlkahn/6915115602dcdf8e8809 to your computer and use it in GitHub Desktop.
Save tlkahn/6915115602dcdf8e8809 to your computer and use it in GitHub Desktop.
set module return value as global
if (typeof define === "function" && define.amd) this.d3 = d3, define(d3); else if (typeof module === "object" && module.exports) module.exports = d3; else this.d3 = d3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment