Total Complexity | 4 |
Complexity/F | 1.33 |
Lines of Code | 20 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /* |
||
17 | function cargarTipoEdificaciones(){ |
||
18 | var listado = ''; |
||
19 | $.ajax({ |
||
20 | type: 'GET', |
||
21 | url : url_tipo_edificaciones, |
||
|
|||
22 | data : 'busqueda=arbol_tipo_edificaciones', |
||
23 | async: false, |
||
24 | success : function(response) { |
||
25 | if(response.length !== 0){ |
||
26 | listado = response; |
||
27 | }else{ |
||
28 | alert('¡No hay una estructura asignada para este padre!'); |
||
29 | } |
||
30 | }, |
||
31 | error: function(response) { |
||
32 | alert(response); |
||
33 | } |
||
34 | }); |
||
35 | return listado; |
||
36 | } |
||
37 |
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.