mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
Use all Mithril lifecycle stubs (#2847)
This commit is contained in:
committed by
GitHub
parent
ceb567779e
commit
d4e3254395
@@ -28,7 +28,9 @@ export default class ConfirmDocumentUnload extends Component {
|
||||
$(window).on('beforeunload', this.boundHandler);
|
||||
}
|
||||
|
||||
onremove() {
|
||||
onremove(vnode) {
|
||||
super.onremove(vnode);
|
||||
|
||||
$(window).off('beforeunload', this.boundHandler);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user