aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-08 14:33:48 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-08 14:33:48 +1300
commit38134454c55b4a36f7c82686e3a29a9610050e6e (patch)
tree9cc0cb41713c1d9b17f1df17c41953a938f010be /web/app/view/MapController.js
parent30f1a770f867de05a89ee6073dc002137d5e4512 (diff)
downloadtraccar-server-38134454c55b4a36f7c82686e3a29a9610050e6e.tar.gz
traccar-server-38134454c55b4a36f7c82686e3a29a9610050e6e.tar.bz2
traccar-server-38134454c55b4a36f7c82686e3a29a9610050e6e.zip
Fix JavaScript check style issues
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r--web/app/view/MapController.js5
1 files changed, 3 insertions, 2 deletions
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]);
}