shershen08 / vue-masonry

💠 Vue.js directive for masonry blocks layouting ✅
MIT License
674 stars 81 forks source link

Fix performance issues about event listeners #57

Closed Hadrien-DELAITRE closed 6 years ago

Hadrien-DELAITRE commented 6 years ago

This commit removes event listeners when destroy event is triggered. It resolves performance issues when component is re-inserted several times, in an SPA behavior for example.

Related to https://github.com/shershen08/vue-masonry/issues/48