mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Eliminate dead code
This commit is contained in:
parent
6ccf2af37a
commit
cd94c4e38a
6 changed files with 1 additions and 29 deletions
|
@ -110,9 +110,7 @@ export default {
|
|||
songInfo.fetch(song).then(song => {
|
||||
this.song = song
|
||||
})
|
||||
},
|
||||
|
||||
'koel:teardown': () => this.resetState()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,11 +55,6 @@ export default {
|
|||
*/
|
||||
'koel:ready': () => this.displayMore(),
|
||||
|
||||
'koel:teardown': () => {
|
||||
this.q = ''
|
||||
this.numOfItems = 9
|
||||
},
|
||||
|
||||
'filter:changed': q => {
|
||||
this.q = q
|
||||
}
|
||||
|
|
|
@ -57,11 +57,6 @@ export default {
|
|||
*/
|
||||
'koel:ready': () => this.displayMore(),
|
||||
|
||||
'koel:teardown': () => {
|
||||
this.q = ''
|
||||
this.numOfItems = 9
|
||||
},
|
||||
|
||||
'filter:changed': q => {
|
||||
this.q = q
|
||||
}
|
||||
|
|
|
@ -192,10 +192,6 @@ export default {
|
|||
*/
|
||||
'main-content-view:load': view => {
|
||||
this.viewingQueue = view === 'queue'
|
||||
},
|
||||
|
||||
'koel:teardown': () => {
|
||||
this.song = songStore.stub
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -39,11 +39,6 @@ export default {
|
|||
event.on('search:toggle', () => {
|
||||
this.showing = !this.showing
|
||||
})
|
||||
|
||||
event.on('koel:teardown', () => {
|
||||
this.q = ''
|
||||
this.filter()
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -42,12 +42,5 @@ export default {
|
|||
$.scrollTo(this.$refs.wrapper, 0, 500)
|
||||
this.showBackToTop = false
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
event.on('koel:teardown', () => {
|
||||
this.numOfItems = 30
|
||||
this.showBackToTop = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue