diff options
Diffstat (limited to 'web/app/view/state')
-rw-r--r-- | web/app/view/state/StateController.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js index f85381237..be1d713f1 100644 --- a/web/app/view/state/StateController.js +++ b/web/app/view/state/StateController.js @@ -29,6 +29,9 @@ Ext.define('Traccar.view.state.StateController', { }, init: function() { + var store = Ext.getStore('LiveData'); + store.on('add', this.add); + store.on('update', this.update); }, keys: { @@ -69,6 +72,14 @@ Ext.define('Traccar.view.state.StateController', { })); } } + }, + + add: function(store, data) { + console.log(data); + }, + + update: function(store, data) { + console.log(data); } }); |