Linter fixes

This commit is contained in:
Roman Cervantes 2019-06-06 17:16:41 -07:00
parent 88d0acbfe5
commit 003cf81e9e

View file

@ -190,25 +190,26 @@ export default {
},
},
mounted() {
this.initGrid();
},
watch: {
view(value) {
view() {
this.initGrid();
},
},
mounted() {
this.initGrid();
},
methods: {
initGrid() {
if (this.view === 'grid') {
this.$nextTick(() => {
// eslint-disable-next-line
new Masonry(`.game-grid-${this.listIndex}`, {
itemSelector: '.game-card',
gutter: 4,
});
})
});
}
},