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
5627ecdb
Commit
5627ecdb
authored
Mar 14, 2013
by
Mike Bostock
Browse files
Allow load expression to be overridden.
parent
fd1b42ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/load.js
View file @
5627ecdb
...
...
@@ -2,14 +2,21 @@ var smash = require("smash");
module
.
exports
=
function
()
{
var
files
=
[].
slice
.
call
(
arguments
).
map
(
function
(
d
)
{
return
"
src/
"
+
d
;
}),
expression
=
"
d3
"
,
sandbox
=
null
;
files
.
unshift
(
"
src/start
"
);
files
.
push
(
"
src/end
"
);
function
topic
()
{
smash
.
load
(
files
,
"
d3
"
,
sandbox
,
this
.
callback
);
smash
.
load
(
files
,
expression
,
sandbox
,
this
.
callback
);
}
topic
.
expression
=
function
(
_
)
{
expression
=
_
;
return
topic
;
};
topic
.
sandbox
=
function
(
_
)
{
sandbox
=
_
;
return
topic
;
...
...
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