[ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
[ ] All existing tests are passing
[ ] Tests for the changes are included
What is the current behavior?
the on(event,handler) return void
What is the new behavior?
the on(event,handler) now returns a function to remove the single handler.
PR Checklist
What is the current behavior?
the
on(event,handler)
returnvoid
What is the new behavior?
the
on(event,handler)
now returns a function to remove the single handler.