Skip to content

[Bugfix] Undefined refs and EventsManager#186

Merged
titouanmathis merged 3 commits intodevelopfrom
bugfix/events
Jan 12, 2022
Merged

[Bugfix] Undefined refs and EventsManager#186
titouanmathis merged 3 commits intodevelopfrom
bugfix/events

Conversation

@titouanmathis
Copy link
Contributor

@titouanmathis titouanmathis commented Jan 12, 2022

The `EventsManager` would throw an error while trying to bind and unbind
events from refs which were `undefined`.
@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #186 (dd36c6c) into develop (4965d73) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #186      +/-   ##
===========================================
+ Coverage    99.33%   99.35%   +0.01%     
===========================================
  Files           65       66       +1     
  Lines         1507     1549      +42     
  Branches       362      371       +9     
===========================================
+ Hits          1497     1539      +42     
  Misses          10       10              
Flag Coverage Δ
unittests 99.35% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/js-toolkit/Base/index.js 100.00% <ø> (ø)
packages/js-toolkit/Base/managers/RefsManager.js 100.00% <100.00%> (ø)
...ckages/js-toolkit/decorators/withScrolledInView.js 91.11% <0.00%> (ø)
packages/js-toolkit/utils/math/ease.js 100.00% <0.00%> (ø)

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 4965d73...dd36c6c. Read the comment docs.

@titouanmathis titouanmathis changed the title [Bugfix] Undefined regs and EventsManager [Bugfix] Undefined refs and EventsManager Jan 12, 2022
@titouanmathis titouanmathis merged commit bb32769 into develop Jan 12, 2022
@titouanmathis titouanmathis deleted the bugfix/events branch January 12, 2022 20:22
@titouanmathis titouanmathis self-assigned this Jan 12, 2022
titouanmathis added a commit that referenced this pull request Jan 12, 2022
titouanmathis added a commit that referenced this pull request Jan 13, 2022
v2.0.0-beta.9

Added
- Add easing functions (#184)

Fixed
- Add support for custom `IntersectionObserver` options for the `withScrolledInView` decorator (#185)
- Add missing doc for decorators
- Fix a bug where refs could be `undefined` (#183, #186, 9e891bf)
- Add a missing event definition (#183, #186, fc8ef57)
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.

Filter out undefined ref and add a warning in the console

1 participant