Closed TedYav closed 7 years ago
Dude! Thank you for all this work. I will try to review it a bit more closely today and get it merged soon.
Also, did you run eslint? It looks like there are a few little code style tweaks that need to be made.
Will make changes—cheers and thanks for feedback—you caught a few things I forgot to clean.
I did install ESlint plugin into VSCode and ran ESlint on it—didn't get any issues. Just tested it by adding extra spaces and it gave me an error so perhaps .estlintrc
doesn't contain all desired rules? If you point out some examples of code style issues I'll fix them.
Q: would you like me to make changes and then rebase so that there's a single commit or create a new commit? Thanks!
A new commit is great because I can easily see your changes. I normally use rebasing only locally when I want to work on multiple tasks locally, then rebase them into one and push up. Then after my colleagues review, I add more commits.
:+1: thanks for suggestions -- made changes as suggested. Also factored out function to reduce tons of duplicated lines.
EDIT: ran eslint — didn't catch any code style issues but perhaps it's not configured for all of them — lemme know if there's any other you want me to change. Cheers.
Summary of modifications: (Edit: squashed commits into one)
coordinates.js
to avoid clutteringpage.js
null
forlat
andlon
and provide an appropriate error message.Got a chance to work on this this weekend, cheers! Lemme know if you want me to clean it up or make any changes. This npm module helped me out a ton on a project I was doing, so figured I could patch up one of the edgecases on it đź‘Ť