Total Complexity | 8 |
Complexity/F | 2 |
Lines of Code | 26 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | jaxon.dialogs.toastr = { |
||
|
|||
2 | success: function(content, title) { |
||
3 | if((title)) |
||
4 | toastr.success(content, title); |
||
5 | else |
||
6 | toastr.success(content); |
||
7 | }, |
||
8 | info: function(content, title) { |
||
9 | if((title)) |
||
10 | toastr.info(content, title); |
||
11 | else |
||
12 | toastr.info(content); |
||
13 | }, |
||
14 | warning: function(content, title) { |
||
15 | if((title)) |
||
16 | toastr.warning(content, title); |
||
17 | else |
||
18 | toastr.warning(content); |
||
19 | }, |
||
20 | error: function(content, title) { |
||
21 | if((title)) |
||
22 | toastr.error(content, title); |
||
23 | else |
||
24 | toastr.error(content); |
||
25 | } |
||
26 | }; |
||
27 |
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.