named anonymous functions

This commit is contained in:
2019-04-18 19:51:21 +00:00
parent 7770b8bad1
commit 8cdae969fb
13 changed files with 43 additions and 39 deletions

View File

@@ -139,7 +139,7 @@ export default {
.then(response => {
this.serverInfo = response.data;
})
.catch(function(error) {
.catch(function handleGetServerInfoError(error) {
throw error;
});
},

View File

@@ -235,7 +235,7 @@ export default {
that.obj = res.data;
}
})
.catch(function(error) {
.catch(function handleGetDataFromAPIError(error) {
that.$gzHandleFormError(error, that);
});
},
@@ -265,7 +265,7 @@ export default {
}
}
})
.catch(function(error) {
.catch(function handleSubmitError(error) {
that.$gzHandleFormError(error, that);
});
}

View File

@@ -12,7 +12,7 @@
export default {
created() {
var outText = "";
this.$_.forEach(this.$store.state.logArray, function(value) {
this.$_.forEach(this.$store.state.logArray, function appendLogItem(value) {
outText += value + "\n";
});
this.logText = outText;

View File

@@ -81,7 +81,7 @@ export default {
.then(() => {
this.$router.replace({ name: "home" });
})
.catch(function(error) {
.catch(function handleCaughtLoginError(error) {
/* xeslint-disable-next-line */
if (
error.message &&