- initialize(path, id, function () {
- var data = $(".details").data();
- if (!data) return;
- var latLng = L.latLng(data.coordinates.split(","));
- if (!map.getBounds().contains(latLng)) moveToNote();
- });
+ initialize(path, id);
+
+ var data = $(".details").data();
+ if (!data) return;
+ var latLng = L.latLng(data.coordinates.split(","));
+ if (!map.getBounds().contains(latLng)) moveToNote();