How to remove a Anonymous callable action
zotopteam opened this issue · comments
hankx_chen commented
When i add a action:
Eventy::addAction('foo', function() { echo 'bar'; });
Then I want to remove it, How to do this?
Eventy::remove('foo', ……);
Tor Morten Jensen commented
Good question. The function is anonymous so you wouldn't have a reference to it to remove it later on.
I'll try and come up with a solution for your issue. I'll get back to you!
Tor Morten Jensen commented
@zotopteam I've implemented functionality for this with #17. Mind giving it a go?
hankx_chen commented
Thanks, #17 is pretty!