Skip to content
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

Uncaught TypeError: Cannot read property 'nr' of undefined #9

Closed
codehz opened this issue Jul 11, 2016 · 2 comments
Closed

Uncaught TypeError: Cannot read property 'nr' of undefined #9

codehz opened this issue Jul 11, 2016 · 2 comments

Comments

@codehz
Copy link

codehz commented Jul 11, 2016

clusterize.js:374

        absI = absIs[n];
        relI = absI % 3;
        if (this.clusters[relI].nr !== absI || repaint) {

and i found that rell is -1

clusterVisible == 1 and clustersCount == 2 and clustersBelow == 0
absIs = [-1, 0, 1]
absI = -1
relI = absI % 3; //=-1

I think this case you can just detect it and return because all item are rendered, nothing need to do..

@paulpflug
Copy link
Member

should be solved in 0.5.0 by always enforce clustersCount > 2

I changed the usage in 0.5.0. Hopefully easier 😄

@codehz
Copy link
Author

codehz commented Jul 12, 2016

fixed

@codehz codehz closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants