Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MUR Drupal
d3-library
Commits
822e0af7
Commit
822e0af7
authored
Jun 29, 2013
by
Mike Bostock
Browse files
Fix relative path.
parent
e31c0fb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
822e0af7
var
fs
=
require
(
"
fs
"
),
path
=
require
(
"
path
"
),
document
=
require
(
"
jsdom
"
).
jsdom
(
"
<html><head></head><body></body></html>
"
),
window
=
document
.
createWindow
();
...
...
@@ -10,5 +11,5 @@ CSSStyleDeclaration_prototype.setProperty = function(name, value, priority) {
};
module
.
exports
=
(
new
Function
(
"
window
"
,
"
document
"
,
"
return
"
+
fs
.
readFileSync
(
"
./
d3.js
"
,
"
utf-8
"
))
"
return
"
+
fs
.
readFileSync
(
path
.
join
(
__dirname
,
"
d3.js
"
)
,
"
utf-8
"
))
)(
window
,
document
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment