mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
14
node_modules/d3-selection/src/selection/insert.js
generated
vendored
Normal file
14
node_modules/d3-selection/src/selection/insert.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import creator from "../creator.js";
|
||||
import selector from "../selector.js";
|
||||
|
||||
function constantNull() {
|
||||
return null;
|
||||
}
|
||||
|
||||
export default function(name, before) {
|
||||
var create = typeof name === "function" ? name : creator(name),
|
||||
select = before == null ? constantNull : typeof before === "function" ? before : selector(before);
|
||||
return this.select(function() {
|
||||
return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user