vue-feathers icon indicating copy to clipboard operation
vue-feathers copied to clipboard

Does not remove listeners properly

Open ShimShamSam opened this issue 6 years ago • 0 comments

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.

ShimShamSam avatar Feb 26 '18 20:02 ShimShamSam