Total Complexity | 8 |
Complexity/F | 1.33 |
Lines of Code | 26 |
Function Count | 6 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | jaxon.dialogs.overhang = { |
||
|
|||
2 | success: function(content, title) { |
||
3 | $("body").overhang({message: content, title: title, type: 'success', duration: 5}); |
||
4 | }, |
||
5 | info: function(content, title) { |
||
6 | $("body").overhang({message: content, title: title, type: 'info', duration: 5}); |
||
7 | }, |
||
8 | warning: function(content, title) { |
||
9 | $("body").overhang({message: content, title: title, type: 'warn', duration: 5}); |
||
10 | }, |
||
11 | error: function(content, title) { |
||
12 | $("body").overhang({message: content, title: title, type: 'error', duration: 5}); |
||
13 | }, |
||
14 | confirm: function(question, title, yesCallback, noCallback) { |
||
15 | $("body").overhang({ |
||
16 | type: "confirm", |
||
17 | message: question, |
||
18 | callback: function(res){ |
||
19 | if(res) |
||
20 | yesCallback(); |
||
21 | else if(noCallback != undefined) |
||
22 | noCallback(); |
||
23 | } |
||
24 | }); |
||
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.