Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

make sure a given element isn’t undefined before accessing properties #2403

Merged
merged 1 commit into from Dec 3, 2016

Conversation

eymiha
Copy link
Contributor

@eymiha eymiha commented Dec 3, 2016

fixes #2402

the util.topMost functions searches a pile of candidates for the first that defines an accessor. But no check was being done for the presence of a candidate before checking. An added conditional now prevents this from happening.

@mojoaxel
Copy link
Member

mojoaxel commented Dec 3, 2016

I think I prefer #2401 😉

@eymiha
Copy link
Contributor Author

eymiha commented Dec 3, 2016

take #2401, the it's all the same! :-)

@mojoaxel
Copy link
Member

mojoaxel commented Dec 3, 2016

@eymiha It's your bug I'm ok with you fixing it!

@mojoaxel mojoaxel merged commit a77e462 into almende:develop Dec 3, 2016
@mojoaxel mojoaxel added this to the Minor Release v4.18 milestone Dec 3, 2016
@eymiha
Copy link
Contributor Author

eymiha commented Dec 3, 2016

Thanks! I've been using the constraints with multiple fonts and it's all really working nicely for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants