summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/common.js b/js/common.js
index c17e8bc45..fb5cc6531 100755
--- a/js/common.js
+++ b/js/common.js
@@ -1,6 +1,7 @@
'use strict';
/* global dijit, __, App, Ajax */
+/* eslint-disable no-new */
/* error reporting shim */
// TODO: deprecated; remove
@@ -31,8 +32,8 @@ function xhrPost(url, params, complete) {
/* exported xhrJson */
function xhrJson(url, params, complete) {
- return new Promise((resolve, reject) => {
- return xhrPost(url, params).then((reply) => {
+ return new Promise((resolve, reject) =>
+ xhrPost(url, params).then((reply) => {
let obj = null;
try {
@@ -44,8 +45,7 @@ function xhrJson(url, params, complete) {
if (complete != undefined) complete(obj);
resolve(obj);
- });
- });
+ }));
}
/* add method to remove element from array */