Conditions | 1 |
Paths | 1 |
Total Lines | 37 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | (function(http) { |
||
2 | |||
3 | 'use strict'; |
||
4 | |||
5 | var ns = faulancer.namespace('docs'); |
||
|
|||
6 | |||
7 | ns.controller = { |
||
8 | |||
9 | errorAction: function() { |
||
10 | |||
11 | document.getElementById('mainContent').innerHTML = ''; |
||
12 | |||
13 | }, |
||
14 | |||
15 | documentationAction: function() { |
||
16 | |||
17 | var res = '/contents/landingpage.html'; |
||
18 | |||
19 | http.get(res, function(response) { |
||
20 | |||
21 | document.getElementById('mainContent').innerHTML = response; |
||
22 | |||
23 | }, function() { |
||
24 | console.log('Error'); |
||
25 | }); |
||
26 | |||
27 | }, |
||
28 | |||
29 | contactAction: function() { |
||
30 | |||
31 | |||
32 | |||
33 | } |
||
34 | |||
35 | }; |
||
36 | |||
37 | })(faulancer.namespace('docs.routing.http')); |
||
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.