aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-06-28 23:00:56 +0500
committerAbyss777 <abyss@fox5.ru>2016-06-28 23:00:56 +0500
commit77eab0f1f5c9c0f9cb13ac435251911b27bbc122 (patch)
treeb14c3ddd7db44c82d07c768e4756711db2d1e85e /web/app
parentc7675d217ce740e80dc22902f536a2e790472bba (diff)
downloadtraccar-server-77eab0f1f5c9c0f9cb13ac435251911b27bbc122.tar.gz
traccar-server-77eab0f1f5c9c0f9cb13ac435251911b27bbc122.tar.bz2
traccar-server-77eab0f1f5c9c0f9cb13ac435251911b27bbc122.zip
Moved declaration to the beginning
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/AttributesController.js4
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,