mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
refactor(SideBar): remove onPJAXStart
This commit is contained in:
parent
85f83decef
commit
4b95670b5b
1 changed files with 0 additions and 5 deletions
|
|
@ -63,7 +63,6 @@ export default class SideBar extends React.Component {
|
|||
NProgress.done()
|
||||
}
|
||||
|
||||
window.addEventListener('pjax:send', this.onPJAXStart)
|
||||
window.addEventListener('pjax:complete', this.onPJAXEnd)
|
||||
window.addEventListener('keydown', this.onKeyDown)
|
||||
} catch (err) {
|
||||
|
|
@ -84,14 +83,10 @@ export default class SideBar extends React.Component {
|
|||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener('pjax:send', this.onPJAXStart)
|
||||
window.removeEventListener('pjax:complete', this.onPJAXEnd)
|
||||
window.removeEventListener('keydown', this.onKeyDown)
|
||||
}
|
||||
|
||||
onPJAXStart = () => {
|
||||
}
|
||||
|
||||
onPJAXEnd = () => {
|
||||
NProgress.done()
|
||||
const { metaData } = this.state
|
||||
|
|
|
|||
Loading…
Reference in a new issue