Skip to content

Commit 689a476

Browse files
committed
Merge branch 'patch-4' of https://github.com/curran/d3-selection into curran-patch-4
2 parents 105ecb9 + f2ee26e commit 689a476

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/selection/merge.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {Selection} from "./index.js";
22

3-
export default function(selection) {
3+
export default function(context) {
4+
var selection = context.selection ? context.selection() : context;
45
if (!(selection instanceof Selection)) throw new Error("invalid merge");
56

67
for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {

0 commit comments

Comments
 (0)