Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

i/6145: Replaced the getResizeObserver() helper with the ResizeObserver class #320

Merged
merged 5 commits into from
Feb 6, 2020

Conversation

oleq
Copy link
Member

@oleq oleq commented Jan 28, 2020

Suggested merge commit message (convention)

Other: Replaced the getResizeObserver() helper with the ResizeObserver class for performance reasons. Closes ckeditor/ckeditor5#6145.

MINOR BREAKING CHANGE: The getResizeObserver() helper is no longer available. We recommend using the ResizeObserver class instead.


Additional information

Requires:

@coveralls
Copy link

coveralls commented Jan 28, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling fbd42ea on i/6145 into e63b7b7 on master.

src/dom/resizeobserver.js Outdated Show resolved Hide resolved
src/dom/resizeobserver.js Outdated Show resolved Hide resolved
src/dom/resizeobserver.js Outdated Show resolved Hide resolved
@Reinmar
Copy link
Member

Reinmar commented Jan 28, 2020

OK, from the code perspective this change looks good. There are 3 minor issues that I spotted. I leave the rest to you, @panr. Please verify how does it affect the case that you have, guys. And if all's fine and you like the implementation, you can merge those two PRs.

@Reinmar
Copy link
Member

Reinmar commented Jan 28, 2020

PS. I updated the merge message. It's a minor BC to me so I wanted to make that explicite.

@panr
Copy link
Contributor

panr commented Feb 6, 2020

LGTM 👌 Merging it.

@panr panr merged commit 05c97f8 into master Feb 6, 2020
@panr panr deleted the i/6145 branch February 6, 2020 14:26
panr added a commit to ckeditor/ckeditor5-ui that referenced this pull request Feb 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the getResizeObserver re-use a single observer instance for performance reasons
4 participants