From 38134454c55b4a36f7c82686e3a29a9610050e6e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 8 Nov 2015 14:33:48 +1300 Subject: Fix JavaScript check style issues --- web/app/view/MapController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/app/view/MapController.js') diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index aa27aff74..9ccc3d57c 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -118,7 +118,8 @@ Ext.define('Traccar.view.MapController', { }, clearReport: function (store) { - var vectorSource = this.getView().getVectorSource(); + var vectorSource, key; + vectorSource = this.getView().getVectorSource(); if (this.reportRoute) { vectorSource.removeFeature(this.reportRoute); @@ -126,7 +127,7 @@ Ext.define('Traccar.view.MapController', { } if (this.reportMarkers) { - for (var key in this.reportMarkers) { + for (key in this.reportMarkers) { if (this.reportMarkers.hasOwnProperty(key)) { vectorSource.removeFeature(this.reportMarkers[key]); } -- cgit v1.2.3