aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/Languages.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/store/Languages.js')
-rw-r--r--web/app/store/Languages.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/store/Languages.js b/web/app/store/Languages.js
index 658b7bc21..22685173a 100644
--- a/web/app/store/Languages.js
+++ b/web/app/store/Languages.js
@@ -18,9 +18,9 @@ Ext.define('Traccar.store.Languages', {
extend: 'Ext.data.Store',
fields: ['code', 'name'],
- data: function () {
- var data = [];
- for (var code in availableLanguages) {
+ data: (function () {
+ var code, data = [];
+ for (code in availableLanguages) {
if (availableLanguages.hasOwnProperty(code)) {
data.push({
code: code,
@@ -29,5 +29,5 @@ Ext.define('Traccar.store.Languages', {
}
}
return data;
- }()
+ }())
});