Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MUR Drupal
d3-library
Commits
7ac9a5db
Commit
7ac9a5db
authored
Mar 08, 2012
by
David Poncelow
Browse files
Add sizzle selector dependency to node module build.
parent
d3c33243
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
7ac9a5db
var
self
=
this
,
globals
=
[
"
document
"
,
"
window
"
,
"
navigator
"
,
"
CSSStyleDeclaration
"
,
"
d3
"
],
globals
=
[
"
document
"
,
"
window
"
,
"
navigator
"
,
"
CSSStyleDeclaration
"
,
"
d3
"
,
"
Sizzle
"
],
globalValues
=
{};
globals
.
forEach
(
function
(
global
)
{
...
...
@@ -11,6 +11,8 @@ window = document.createWindow();
navigator
=
window
.
navigator
;
CSSStyleDeclaration
=
window
.
CSSStyleDeclaration
;
Sizzle
=
require
(
'
sizzle
'
);
require
(
"
./d3.v2
"
);
module
.
exports
=
d3
;
...
...
package.json
View file @
7ac9a5db
...
...
@@ -21,7 +21,8 @@
},
"main"
:
"index.js"
,
"dependencies"
:
{
"
jsdom
"
:
"
0.2.12
"
"
jsdom
"
:
"
0.2.12
"
,
"
sizzle
"
:
"
*
"
},
"devDependencies"
:
{
"
uglify-js
"
:
"
1.2.3
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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