See #398 (has been closed as it wasn't against the master branch)
Ensure onFlush and postFlush events are always raised
No huge if clause
thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:
@guilhermeblanco whats your opinion? I think this is a +1 from me
Merged in c20cfed, added tests and UPGRADE.md entry.
Nice, and thank you for testing it!