Conditions | 6 |
Paths | 4 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | $(document).ready(function() { |
||
23 | callback: function(result) { |
||
24 | if (result === true) { |
||
25 | var action = button.attr('data-confirm-action'); |
||
26 | |||
27 | switch (action) { |
||
28 | case 'followHref': |
||
29 | default: |
||
30 | window.location.href = button.attr('href'); |
||
31 | break; |
||
32 | case 'callAction': |
||
33 | var functionName = button.attr('data-confirm-function'); |
||
34 | functionName(button); |
||
35 | break; |
||
36 | case 'triggerClick': |
||
37 | button[0].click(); |
||
38 | break; |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 | }); |
||
45 |
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.