aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/Languages.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:39:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:39:14 +1300
commitd16121684ecae7646aa87616a64d60978d087bc0 (patch)
tree69a02f798950bc9ee54e33cdf8ae09fed40168e4 /web/app/store/Languages.js
parent8782eeec561e490b4262ba8983e69623daaf5845 (diff)
downloadtrackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.gz
trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.bz2
trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.zip
Move remaining classes to view
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;
- }()
+ }())
});