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,9 +70,9 @@ export class MapWidgetController implements MapWidgetInterface {
70 parseWithTranslation.setTranslate(this.translate); 70 parseWithTranslation.setTranslate(this.translate);
71 this.map = new MapClass(this.ctx, $element, this.settings); 71 this.map = new MapClass(this.ctx, $element, this.settings);
72 (this.ctx as any).mapInstance = this.map; 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 this.pageLink = { 76 this.pageLink = {
77 page: 0, 77 page: 0,
78 pageSize: this.settings.mapPageSize, 78 pageSize: this.settings.mapPageSize,