sunabozu / vue-feathers

Integration with the Feathers framework for Vue.js
MIT License
78 stars 9 forks source link

Does not remove listeners properly #7

Open ShimShamSam opened 6 years ago

ShimShamSam commented 6 years ago

In the current code:

server.service(keys[i]).removeListener(ekeys[k], service[ekeys[k]].bind(this))

The bind(this) will create a new function. removeListener expects a reference to an already bound function. You'll have to store references to the functions added in the created hook in order to remove them properly.