Skip to content

Commit 144a2e9

Browse files
committed
Move edits to src/component.js.
1 parent d729f7c commit 144a2e9

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

component.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"name": "d3",
33
"version": "3.1.4",
44
"main": "index-browserify.js",
5-
"scripts": ["index-browserify.js", "d3.js"]
5+
"scripts": [
6+
"index-browserify.js",
7+
"d3.js"
8+
]
69
}

index-browserify.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
require("./d3");
22
module.exports = d3;
3-
4-
// unset global variable
5-
(function () { delete this.d3; })();
3+
(function () { delete this.d3; })(); // unset global

src/component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ var d3 = require("../index");
33
console.log(JSON.stringify({
44
"name": "d3",
55
"version": d3.version,
6-
"main": "./d3.js"
6+
"main": "index-browserify.js",
7+
"scripts": ["index-browserify.js", "d3.js"]
78
}, null, 2));

0 commit comments

Comments
 (0)