diff --git a/README.md b/README.md index 16a18e4..cdd5c33 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ This means that it's basically a "decorator". A component which does not output | **change** | [*IntersectionObserverEntry*](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry) | Event fired on any inte. | | **enter** | [*IntersectionObserverEntry*](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry) | Event fired when the element is intersected (visible on the screen) | | **leave** | [*IntersectionObserverEntry*](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry) | Event fired when the element is *not* intersected (not visible on the screen) | +| **destroyed** | None | Fired when the underlying element is destroyed | diff --git a/src/index.js b/src/index.js index b84b21e..2a7ad23 100644 --- a/src/index.js +++ b/src/index.js @@ -54,6 +54,7 @@ export default { }) }, destroyed () { + this.$emit('destroyed'); this.observer.disconnect() }, render () {