feed-me
feed-me copied to clipboard
Trigger event from object, not static method
When using behaviors to handle events, event won't fire when it is called with the static method, as the behavior is added dynamically, but when using this->trigger()
it will, so I suggest to trigger it from the object itself. (If there's no specific reason to do it otherwise, perhaps all event triggers could be changed in the same way.)
Fixes #730