We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 105ecb9 + f2ee26e commit 689a476Copy full SHA for 689a476
src/selection/merge.js
@@ -1,6 +1,7 @@
1
import {Selection} from "./index.js";
2
3
-export default function(selection) {
+export default function(context) {
4
+ var selection = context.selection ? context.selection() : context;
5
if (!(selection instanceof Selection)) throw new Error("invalid merge");
6
7
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