diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-28 23:00:56 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-28 23:00:56 +0500 |
commit | 77eab0f1f5c9c0f9cb13ac435251911b27bbc122 (patch) | |
tree | b14c3ddd7db44c82d07c768e4756711db2d1e85e /web/app/view | |
parent | c7675d217ce740e80dc22902f536a2e790472bba (diff) | |
download | trackermap-server-77eab0f1f5c9c0f9cb13ac435251911b27bbc122.tar.gz trackermap-server-77eab0f1f5c9c0f9cb13ac435251911b27bbc122.tar.bz2 trackermap-server-77eab0f1f5c9c0f9cb13ac435251911b27bbc122.zip |
Moved declaration to the beginning
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/AttributesController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js index e65d2eaa3..90dc334b1 100644 --- a/web/app/view/AttributesController.js +++ b/web/app/view/AttributesController.js @@ -24,10 +24,10 @@ Ext.define('Traccar.view.AttributesController', { ], init: function () { - var store, i = 0; + var store, propertyName, i = 0; store = Ext.create('Traccar.store.Attributes'); store.setProxy(Ext.create('Ext.data.proxy.Memory')); - for(var propertyName in this.getView().attributes) { + for (propertyName in this.getView().attributes) { store.add(Ext.create('Traccar.model.Attribute', { priority: i++, name: propertyName, |