Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 11 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // Rest |
||
3 | function restUrl(url, classname, error, success) { |
||
4 | |||
5 | var rest_form = new Rest(url, '?', error, success); |
||
|
|||
6 | |||
7 | var forms = document.getElementsByTagName('form'); |
||
8 | |||
9 | // console.log(forms); |
||
10 | for (var i = 0; i < forms.length; i++) { |
||
11 | formEvent(forms[i], rest_form, error, success); |
||
12 | } |
||
13 | } |
||
14 |
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.