refact: use shorthand method and property syntax

This commit is contained in:
Simon Legner 2024-10-14 21:11:28 +02:00 committed by Gautier P
parent babd154596
commit 76f31aeb2b
44 changed files with 520 additions and 514 deletions

View file

@ -1,10 +1,10 @@
BR.Itinerary = L.Class.extend({
initialize: function () {
initialize() {
this._content = document.getElementById('itinerary');
this.update();
},
update: function (polyline, segments) {
update(polyline, segments) {
var i,
j,
iter,