🌐 AI搜索 & 代理 主页
Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Commit 82bdd7e

Browse files
the correct, directly needed dependencies, are d3 and dc
1 parent 00a8bc7 commit 82bdd7e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(function() { function _dcdt(dc) {
1+
(function() { function _dcdt(d3, dc) {
22
'use strict';

src/footer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
// Expose d3 and crossfilter, so that clients in browserify
2-
// case can obtain them if they need them.
3-
dc_datatables.crossfilter = crossfilter;
1+
// Expose dc; clients can retrieve d3 & crossfilter from dc if needed
2+
dc_datatables.dc = dc;
43

54
return dc_datatables;}
65
if(typeof define === "function" && define.amd) {
7-
define([], _dcdt);
6+
define(["d3", "dc"], _dcdt);
87
} else if(typeof module === "object" && module.exports) {
8+
var _d3 = require('d3');
99
var _dc = require('dc');
10-
module.exports = _dcdt(_dc);
10+
module.exports = _dcdt(_d3, _dc);
1111
} else {
12-
this.dc_datatables = _dcdt(dc);
12+
this.dc_datatables = _dcdt(d3, dc);
1313
}
1414
}
1515
)();

0 commit comments

Comments
 (0)