From 8782eeec561e490b4262ba8983e69623daaf5845 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Oct 2015 20:27:15 +1300 Subject: Add space after function keyword --- web/app/view/StateController.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web/app/view/StateController.js') diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index dc2ddfb2b..ce9a21af4 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -28,7 +28,7 @@ Ext.define('Traccar.view.StateController', { } }, - init: function() { + init: function () { var store = Ext.getStore('LatestPositions'); store.on('add', this.add, this); store.on('update', this.update, this); @@ -73,7 +73,7 @@ Ext.define('Traccar.view.StateController', { } }, - formatValue: function(value) { + formatValue: function (value) { if (typeof(id) === 'number') { return value.toFixed(2); } else { @@ -81,7 +81,7 @@ Ext.define('Traccar.view.StateController', { } }, - updatePosition: function(position) { + updatePosition: function (position) { var attributes, value, unit, store, key; store = Ext.getStore('Attributes'); store.removeAll(); @@ -112,7 +112,7 @@ Ext.define('Traccar.view.StateController', { } }, - selectDevice: function(device) { + selectDevice: function (device) { var found; this.deviceId = device.get('id'); found = Ext.getStore('LatestPositions').query('deviceId', this.deviceId); @@ -123,13 +123,13 @@ Ext.define('Traccar.view.StateController', { } }, - add: function(store, data) { + add: function (store, data) { if (this.deviceId === data[0].get('deviceId')) { this.updatePosition(data[0]); } }, - update: function(store, data) { + update: function (store, data) { if (this.deviceId === data.get('deviceId')) { this.updatePosition(data); } -- cgit v1.2.3