From 1d6eecf33c0bec1df240896beb421ab040ef4203 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 14 Nov 2015 13:04:22 +1300 Subject: Fix JavaScript check style issues --- web/app/view/Map.js | 2 +- web/app/view/MapController.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'web/app/view') diff --git a/web/app/view/Map.js b/web/app/view/Map.js index 3be450cf4..7d81699a3 100644 --- a/web/app/view/Map.js +++ b/web/app/view/Map.js @@ -105,7 +105,7 @@ Ext.define('Traccar.view.Map', { } this.map.on('pointermove', function (e) { - var hit = this.forEachFeatureAtPixel(e.pixel, function(feature, layer) { + var hit = this.forEachFeatureAtPixel(e.pixel, function (feature, layer) { return true; }); if (hit) { diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index 2f4eb5a3c..c153ebd45 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -110,7 +110,7 @@ Ext.define('Traccar.view.MapController', { this.getView().getVectorSource().addFeature(marker); style = this.getReportMarker(); - style.getImage().setRotation(position.get('course') * Math.PI / 180 ); + style.getImage().setRotation(position.get('course') * Math.PI / 180); style.getText().setText( Ext.Date.format(position.get('fixTime'), Traccar.Style.dateTimeFormat)); -- cgit v1.2.3