This PR enables callbacks to be compared by signature so they can be removed later on.
Previously there was no convenient way of removing a listener defined as a closure. This PR solves this by hashing callbacks that are of type Closure/anonymous function.
This PR enables callbacks to be compared by signature so they can be removed later on.
Previously there was no convenient way of removing a listener defined as a closure. This PR solves this by hashing callbacks that are of type
Closure
/anonymous function.Say you add a callback as such:
You can now remove it by passing the exact same callback:
Should resolve #16