Fixed duplicate beforeUnmount

pull/525/head
Cagatay Civici 2020-09-28 14:36:26 +03:00
parent ed0fdc98a5
commit 784c95cdcb
1 changed files with 1 additions and 9 deletions

View File

@ -67,6 +67,7 @@ export default {
this.scrollHandler = null; this.scrollHandler = null;
} }
this.target = null; this.target = null;
this.container = null;
}, },
methods: { methods: {
itemClick(event) { itemClick(event) {
@ -187,15 +188,6 @@ export default {
document.getElementById(this.appendTo).removeChild(this.container); document.getElementById(this.appendTo).removeChild(this.container);
} }
}, },
beforeUnmount() {
this.restoreAppend();
this.unbindResizeListener();
this.unbindOutsideClickListener();
this.unbindScrollListener();
this.scrollHandler = null;
this.target = null;
this.container = null;
},
visible(item) { visible(item) {
return (typeof item.visible === 'function' ? item.visible() : item.visible !== false); return (typeof item.visible === 'function' ? item.visible() : item.visible !== false);
}, },