-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(event-bus): implement simple eventbus class #43
Conversation
✅ Mutation testing passedReport: https://dashboard.stryker-mutator.io/reports/github.com/editor-js/document-model/PR-43 Mutated filessrc/utils/EventBus/EventBus.ts |
Coverage report
Test suite run success311 tests passing in 18 suites. Report generated by 🧪jest coverage report action from 033165d |
src/utils/EventBus/EventBus.ts
Outdated
@@ -0,0 +1,64 @@ | |||
import EventEmitter from 'eventemitter3'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not to use native EventTarget
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
70+ kb is too much for such a simple thing, I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with EventTarget
/** | ||
* The document model has been changed | ||
*/ | ||
CHANGED = 'changed', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use PascalCase
Task #22
Changelog
ToDo