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

Added 'response' event to propagate GraphHopper credit update #16

Merged
merged 3 commits into from
May 31, 2017

Conversation

opoto
Copy link
Contributor

@opoto opoto commented May 23, 2017

Also upgraded example to leaflet 1.0.3 (and its included dist/leaflet-routing-machine.js URL, please check this is ok)

@opoto opoto mentioned this pull request May 23, 2017
Copy link
Owner

@perliedman perliedman left a comment

Choose a reason for hiding this comment

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

Looking good! Except for my comment, this looks good to merge!

@@ -54,6 +54,14 @@
var data;

clearTimeout(timer);
var fired = err ? err : resp;
Copy link
Owner

Choose a reason for hiding this comment

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

I'm thinking this event should only fire if the request hasn't timed out, so move it inside the conditional below. As it is now, you will get response events also for timed out requests, which could be confusing, although it's really an edge case.

@opoto
Copy link
Contributor Author

opoto commented May 24, 2017

Good point, I updated as suggested.

@opoto
Copy link
Contributor Author

opoto commented May 30, 2017

Any comment?

@perliedman perliedman merged commit da02d15 into perliedman:master May 31, 2017
@perliedman
Copy link
Owner

👍

@perliedman
Copy link
Owner

Published a new version, 1.2.0, with this included.

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