Skip to content

Commit 5d38e88

Browse files
committed
Add zero arg to TypedArray
1 parent de63951 commit 5d38e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/parcoords/lines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function setAttributes(attributes, sampleCount, points) {
176176
function emptyAttributes(regl) {
177177
var attributes = {};
178178
for(var i = 0; i < 16; i++) {
179-
attributes['p' + i.toString(16)] = regl.buffer({usage: 'dynamic', type: 'float', data: new Uint8Array()});
179+
attributes['p' + i.toString(16)] = regl.buffer({usage: 'dynamic', type: 'float', data: new Uint8Array(0)});
180180
}
181181
return attributes;
182182
}

0 commit comments

Comments
 (0)