OpenBeerMap / OpenBeerMap.github.io

Visualiser et éditer les bières pressions disponibles dans les bars.
http://openbeermap.github.io/
MIT License
92 stars 48 forks source link

Fix js style #55

Closed mRoca closed 9 years ago

mRoca commented 9 years ago

The app can't actually work with Chrome or as Android app, which is using a Chrome view, because of https://github.com/OpenBeerMap/OpenBeerMap.github.io/commit/1fff181f1777bbaf78d3042848ea9a3e108fbc26#diff-5e979b08ac66156fca15911ac64184fcR11 : default values for JS function parameters are not allowed before ES6 (https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Fonctions/Valeurs_par_d%C3%A9faut_des_arguments#Compatibilité_des_navigateurs)

IMO, nobody using another browser than Firefox can run the app since the https://github.com/OpenBeerMap/OpenBeerMap.github.io/commit/1fff181f1777bbaf78d3042848ea9a3e108fbc26 commit (07/2015).

This PR fixes that, and some other code style issues.