diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:27:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:27:15 +1300 |
commit | 8782eeec561e490b4262ba8983e69623daaf5845 (patch) | |
tree | 6cb8c6ccb1b4db249133d71fc521155f63b241ca /web/app/view/StateController.js | |
parent | 458809c4ee29e3410686bf6d8c80c746caf9724f (diff) | |
download | trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.gz trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.bz2 trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.zip |
Add space after function keyword
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 12 |
1 files changed, 6 insertions, 6 deletions
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); } |