From 77eab0f1f5c9c0f9cb13ac435251911b27bbc122 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 28 Jun 2016 23:00:56 +0500 Subject: Moved declaration to the beginning --- web/app/view/AttributesController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') 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, -- cgit v1.2.3