Issues (171)

rest/rest-submit.js (3 issues)

1
function restSubmit(modulename, method, data, error, success) {
2
    var url = '/origini-app/visitor/' + modulename + '/php/index.php';
3
4
    // var Newsletter = new Rest(url, '?', function (data) {
5
    //     console.error(data);
6
    // }, function (data) {
7
    //     console.table(data);
8
    // });
9
    var RestHandle = new Rest(url, '?', error, success);
0 ignored issues
show
The variable Rest seems to be never declared. If this is a global, consider adding a /** global: Rest */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
10
11
    console.log(this);
0 ignored issues
show
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
12
13
    delete data.method;
14
    delete data.submit;
15
16
    console.log(method);
17
18
    RestHandle.byMethod(method, data);
19
    console.log(data);
20
}
21
22
// restSubmit('auth','GET',{'id': 1,' name':'tom'});
23
// restSubmit('auth','PUT',{'id': 1,' name':'tom'});
0 ignored issues
show
The expression has no effects. Consider removing it.
Loading history...