aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-08 14:24:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-08 14:24:10 +1300
commit30f1a770f867de05a89ee6073dc002137d5e4512 (patch)
treee43a6d66f1124a161b4398f92be75b45a31839b5 /web/app/Application.js
parent2c71e521f5e2f60627d0c3df4b6649751dea1035 (diff)
downloadtrackermap-server-30f1a770f867de05a89ee6073dc002137d5e4512.tar.gz
trackermap-server-30f1a770f867de05a89ee6073dc002137d5e4512.tar.bz2
trackermap-server-30f1a770f867de05a89ee6073dc002137d5e4512.zip
Fix JavaScript jshint issues
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 83ca9e860..9a7afc3b9 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -86,7 +86,9 @@ Ext.define('Traccar.Application', {
if (!result.success) {
Ext.Msg.alert(Strings.errorTitle, result.error);
}
- handler.call(scope, options, success, response);
+ if (handler) {
+ handler.call(scope, options, success, response);
+ }
} else {
if (response.statusText) {
Ext.Msg.alert(Strings.errorTitle, response.statusText);
@@ -94,6 +96,6 @@ Ext.define('Traccar.Application', {
Ext.Msg.alert(Strings.errorTitle, response.status.toString()); // TODO: text message
}
}
- }
+ };
}
});