diff options
author | Christian Hogan <github@infliction.org> | 2014-03-21 15:02:28 -0400 |
---|---|---|
committer | suelockwood <deathbear@apache.org> | 2014-03-25 15:19:18 -0400 |
commit | 6301060fdbb9d5505ffd43f8b0df52b6c303b6ef (patch) | |
tree | acc137cd956fb7b23829a039597ae69f3940be3e | |
parent | 95d6d6b035242d9a203b2df3af342274b29f98b1 (diff) | |
download | couchdb-6301060fdbb9d5505ffd43f8b0df52b6c303b6ef.tar.gz |
Require.js config to support d3 v3 update.
-rw-r--r-- | src/fauxton/app/config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fauxton/app/config.js b/src/fauxton/app/config.js index 98be9c6a8..d33f3b8b7 100644 --- a/src/fauxton/app/config.js +++ b/src/fauxton/app/config.js @@ -53,6 +53,8 @@ require.config({ deps: ["jquery"], exports: "Bootstrap" }, + + "nv.d3": ["d3.global"], "plugins/prettify": [], "plugins/beautify": [], @@ -60,3 +62,9 @@ require.config({ "plugins/jquery.form": ["jquery"] } }); + +define("d3.global", ["d3"], function(_) { + d3 = _; +}); + +require(["d3", "nv.d3"], function(d3, nvd3) {}); |