Eliminate dead code

This commit is contained in:
An Phan 2017-01-16 15:08:04 +08:00
parent 6ccf2af37a
commit cd94c4e38a
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2
6 changed files with 1 additions and 29 deletions

View file

@ -110,9 +110,7 @@ export default {
songInfo.fetch(song).then(song => {
this.song = song
})
},
'koel:teardown': () => this.resetState()
}
})
}
}

View file

@ -55,11 +55,6 @@ export default {
*/
'koel:ready': () => this.displayMore(),
'koel:teardown': () => {
this.q = ''
this.numOfItems = 9
},
'filter:changed': q => {
this.q = q
}

View file

@ -57,11 +57,6 @@ export default {
*/
'koel:ready': () => this.displayMore(),
'koel:teardown': () => {
this.q = ''
this.numOfItems = 9
},
'filter:changed': q => {
this.q = q
}

View file

@ -192,10 +192,6 @@ export default {
*/
'main-content-view:load': view => {
this.viewingQueue = view === 'queue'
},
'koel:teardown': () => {
this.song = songStore.stub
}
})
}

View file

@ -39,11 +39,6 @@ export default {
event.on('search:toggle', () => {
this.showing = !this.showing
})
event.on('koel:teardown', () => {
this.q = ''
this.filter()
})
}
}
</script>

View file

@ -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
})
}
}