Skip to content

Init Float32Array with explicit length of 0 #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2016
Merged

Conversation

etpinard
Copy link
Contributor

@mdtusz fixes scattergl and contourgl graphs in core-js environments, and possibly other environments with a more strict implementation of typed arrays.

@etpinard etpinard added bug something broken status: reviewable labels May 26, 2016
@@ -32,7 +32,7 @@ function Contour(scene, uid) {
this.bounds = [0, 0, 0, 0];

this.contourOptions = {
z: new Float32Array(),
z: new Float32Array(0),
Copy link
Contributor

@mdtusz mdtusz May 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that this is required (I assume the missing 0 caused issue somewhere?)

Edit: Well I suppose I could have read the rest of the changes 😛

@mdtusz
Copy link
Contributor

mdtusz commented May 26, 2016

Love a simple fix.

💃 from me.

@etpinard etpinard merged commit 8128622 into master May 26, 2016
@etpinard etpinard deleted the float32array-init branch May 26, 2016 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants