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

Declare this.map as empty array #118

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Declare this.map as empty array #118

merged 1 commit into from
Oct 7, 2016

Conversation

villevuor
Copy link
Contributor

Declaring this.map as an empty array prevents Cannot read property length of null error (e.g. from vivus.js:392). Error occurs if all Vivus objects are set to display: none;, for example.

Declaring this.map prevents "Cannot read property length of null" error (e.g. from line 392). Error occurs if all Vivus objects are set to display: none;, for example.
@maxwellito
Copy link
Owner

maxwellito commented Jul 12, 2016 via email

@maxwellito
Copy link
Owner

maxwellito commented Oct 7, 2016

Actually it doesn't call the drawer for no reason and avoid triggering an error. Your solution is quite nice :)
I'm mergin' it and I will write a test for it.

Thanks for your help (and sorry for the delay)

@maxwellito maxwellito merged commit 077fd64 into maxwellito:master Oct 7, 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

Successfully merging this pull request may close these issues.

2 participants