Skip to content
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

fix(EventTarget): fix subscription to events #4

Merged
merged 3 commits into from
Oct 2, 2018

Conversation

layershifter
Copy link
Owner

@codecov
Copy link

codecov bot commented Oct 2, 2018

Codecov Report

Merging #4 into master will decrease coverage by 3.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #4      +/-   ##
==========================================
- Coverage   98.72%   95.68%   -3.04%     
==========================================
  Files          13        7       -6     
  Lines         469      116     -353     
  Branches       26       27       +1     
==========================================
- Hits          463      111     -352     
+ Misses          1        0       -1     
  Partials        5        5
Impacted Files Coverage Δ
src/lib/EventTarget.ts 96.15% <100%> (+3.56%) ⬆️
src/lib/EventPool.spec.ts
src/lib/utils.spec.ts
src/lib/EventStack.spec.ts
src/EventStack.spec.tsx
src/lib/EventSet.spec.ts

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de63221...8d3d5aa. Read the comment docs.

"plugins": [ "istanbul" ]
"plugins": [
["istanbul", { "exclude": ["src/**/*.spec.{ts,tsx}"] }]
]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove useless coverage from tests

@@ -70,6 +71,7 @@
"release:major": "yarn prerelease && release-it major",
"release:minor": "yarn prerelease && release-it minor",
"release:patch": "yarn prerelease && release-it patch",
"serve": "serve lib",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows to serve the UMD build


this.handlers.set(eventType, handler)
this.target.addEventListener(eventType, handler)
this.target.addEventListener(eventType, handler, true)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
useCapture=true the one of important changes there

@layershifter
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant