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

Add checks for null before using opt.$menu and root.$menu. #416

Merged
merged 1 commit into from Jul 10, 2016
Merged

Add checks for null before using opt.$menu and root.$menu. #416

merged 1 commit into from Jul 10, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jul 5, 2016

This is a pull-request for issue #352 which I've reported eariler. I used to get quite a lot of Javascript errors of this kind reported on play.freeciv.org by Trackjs (error reporting tool).

I have been using this change in production on play.freeciv.org for about one week, and it has resolved all these javascript errors from being reported any more.

@bbrala
Copy link
Member

bbrala commented Jul 7, 2016

Thanks for the contribution. Still puzzled when this happens. But some extra checks shouldn't introduce problems i think. I will merge this in soon and regenerate the dist files.

@bbrala bbrala added the Bug label Jul 7, 2016
@bbrala bbrala merged commit f6c0412 into swisnl:master Jul 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants