(name, before)
| 2353 | } |
| 2354 | |
| 2355 | function selection_insert(name, before) { |
| 2356 | var create = typeof name === "function" ? name : creator(name), |
| 2357 | select = before == null ? constantNull : typeof before === "function" ? before : selector(before); |
| 2358 | return this.select(function() { |
| 2359 | return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null); |
| 2360 | }); |
| 2361 | } |
| 2362 | |
| 2363 | function remove() { |
| 2364 | var parent = this.parentNode; |