Commit 4f342b596155496012dd6db39e399ae4b6885f45

Authored by Vladyslav_Prykhodko
1 parent bdb7d090

UI: Fixed widgets maps backward compatibility for save location

... ... @@ -70,9 +70,9 @@ export class MapWidgetController implements MapWidgetInterface {
70 70 parseWithTranslation.setTranslate(this.translate);
71 71 this.map = new MapClass(this.ctx, $element, this.settings);
72 72 (this.ctx as any).mapInstance = this.map;
73   - this.map.saveMarkerLocation = this.setMarkerLocation;
74   - this.map.savePolygonLocation = this.savePolygonLocation;
75   - this.map.saveLocation = this.saveLocation;
  73 + this.map.saveMarkerLocation = this.setMarkerLocation.bind(this);
  74 + this.map.savePolygonLocation = this.savePolygonLocation.bind(this);
  75 + this.map.saveLocation = this.saveLocation.bind(this);
76 76 this.pageLink = {
77 77 page: 0,
78 78 pageSize: this.settings.mapPageSize,
... ...