Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 21 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import VueEvents from 'vue-events'; |
||
2 | import RedirectsTable from '@/vue/RedirectsTable.vue'; |
||
3 | |||
4 | Vue.use(VueEvents); |
||
|
|||
5 | // Create our vue instance |
||
6 | const vm = new Vue({ |
||
7 | el: "#cp-nav-content", |
||
8 | components: { |
||
9 | 'redirects-table': RedirectsTable, |
||
10 | }, |
||
11 | data: { |
||
12 | }, |
||
13 | methods: { |
||
14 | onTableRefresh (vuetable) { |
||
15 | Vue.nextTick( () => vuetable.refresh()); |
||
16 | } |
||
17 | }, |
||
18 | mounted() { |
||
19 | this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData)); |
||
20 | }, |
||
21 | }); |
||
22 |
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.