We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5883c5 commit 4324026Copy full SHA for 4324026
src/transforms/initializer.js
@@ -11,9 +11,9 @@ export function composeInitializer(i1, i2) {
11
if (i1 == null) return i2 === null ? undefined : i2;
12
if (i2 == null) return i1 === null ? undefined : i1;
13
return function(data, facets, channels, scales, dimensions) {
14
- let c1, c2;
15
- ({data, facets, channels: c1} = i1.call(this, data, facets, channels, scales, dimensions));
16
- ({data, facets, channels: c2} = i2.call(this, data, facets, {...channels, ...c1}, scales, dimensions));
17
- return {data, facets, channels: {...c1, ...c2}};
+ let c1, d1, f1, c2, d2, f2;
+ ({data: d1 = data, facets: f1 = facets, channels: c1} = i1.call(this, data, facets, channels, scales, dimensions));
+ ({data: d2 = d1, facets: f2 = f1, channels: c2} = i2.call(this, d1, f1, {...channels, ...c1}, scales, dimensions));
+ return {data: d2, facets: f2, channels: {...c1, ...c2}};
18
};
19
}
0 commit comments