Skip to content

Commit

Permalink
fix component support
Browse files Browse the repository at this point in the history
  • Loading branch information
danmilon committed Apr 3, 2013
1 parent 37a9152 commit bec7098
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "d3",
"version": "3.1.4",
"main": "./d3.js"
"main": "index-browserify.js",
"scripts": ["index-browserify.js", "d3.js"]
}
5 changes: 4 additions & 1 deletion index-browserify.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
require("./d3");
module.exports = d3;
module.exports = d3;

// unset global variable
(function () { delete this.d3; })();

0 comments on commit bec7098

Please sign in to comment.