| Conditions | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import Feature from 'src/helper/feature.helper'; |
||
| 36 | static initPopover() { |
||
| 37 | /** @deprecated tag:v6.5.0 - Bootstrap v5 uses native elements to init Popover plugin */ |
||
| 38 | if (Feature.isActive('v6.5.0.0')) { |
||
| 39 | new bootstrap.Popover(document.body, { |
||
| 40 | selector: POPOVER_SELECTOR, |
||
| 41 | trigger: 'focus', |
||
| 42 | }); |
||
| 43 | } else { |
||
| 44 | $('body').popover({ |
||
| 45 | selector: POPOVER_SELECTOR, |
||
| 46 | trigger: 'focus', |
||
| 47 | }); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 56 |
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.