You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2014/03/25 20:19:29 UTC
[4/6] couchdb commit: updated refs/heads/master to 7296e53
Require.js config to support d3 v3 update.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6301060f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6301060f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6301060f
Branch: refs/heads/master
Commit: 6301060fdbb9d5505ffd43f8b0df52b6c303b6ef
Parents: 95d6d6b
Author: Christian Hogan <gi...@infliction.org>
Authored: Fri Mar 21 15:02:28 2014 -0400
Committer: suelockwood <de...@apache.org>
Committed: Tue Mar 25 15:19:18 2014 -0400
----------------------------------------------------------------------
src/fauxton/app/config.js | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/6301060f/src/fauxton/app/config.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/config.js b/src/fauxton/app/config.js
index 98be9c6..d33f3b8 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) {});