Skip to content

Commit 37326d8

Browse files
committed
fix #247; no greedy arrayify
1 parent a3c84f0 commit 37326d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const objectToString = Object.prototype.toString;
88
export class Mark {
99
constructor(data, channels = [], options = {}) {
1010
const names = new Set();
11-
this.data = arrayify(data);
11+
this.data = data;
1212
this.transform = maybeTransform(options);
1313
this.channels = channels.filter(channel => {
1414
const {name, value, optional} = channel;
@@ -29,7 +29,7 @@ export class Mark {
2929
});
3030
}
3131
initialize(facets) {
32-
let data = this.data;
32+
let data = arrayify(this.data);
3333
let index = facets === undefined && data != null ? range(data) : facets;
3434
if (data !== undefined && this.transform !== undefined) {
3535
if (facets === undefined) index = index.length ? [index] : [];

0 commit comments

Comments
 (0)