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

Checking null, removing markers on drawer close, Issue #48 #49

Merged
merged 1 commit into from
Apr 22, 2019

Conversation

obrienwritescode
Copy link
Contributor

Fix for Issue: 48

Copy link
Collaborator

@DannyAllegrezza DannyAllegrezza left a comment

Choose a reason for hiding this comment

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

So this should produce the same exact result, but a slightly more concise approach would be to simply first check if entrance is truthy and then verify that its length is > 0 by checking it's length is greater than 0

if (entrance && entrance.length) {
   // ....
}

Copy link
Collaborator

@mccauleypeeler mccauleypeeler left a comment

Choose a reason for hiding this comment

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

nice

@mccauleypeeler mccauleypeeler merged commit 6cfcfdb into master Apr 22, 2019
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.

3 participants