couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [29/50] [abbrv] couchdb commit: updated refs/heads/1.6.x to d2ac597
Date Tue, 01 Apr 2014 17:42:11 GMT
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/1.6.x
Commit: 6301060fdbb9d5505ffd43f8b0df52b6c303b6ef
Parents: 95d6d6b
Author: Christian Hogan <github@infliction.org>
Authored: Fri Mar 21 15:02:28 2014 -0400
Committer: suelockwood <deathbear@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) {});


Mime
View raw message