Comments (4)
Hi @nicooprat,
Really appreciate you trying to get this into polyfil.io and I'm glad it's working well for you!
I'll take a look into the tests and see what I can do.
from resize-observer.
I'll have to fire up an instance of Safari 9.1 to debug this properly. Looking at the code I'm not sure how this is even possible, especially as the other tests for multiple observes appear to be working fine.
from resize-observer.
@nicooprat the dependencies required for the polyfill have changed recently and therefore they will need to be updated in the PR for polyfill.io.
Map
→ WeakMap
Also the tests will have to change slightly as this polyfill didn't follow the spec correctly for the disconnect
API. You can see the issue here (#104).
https://github.com/juggle/resize-observer/releases/tag/v3.2.0
from resize-observer.
I cannot seem to reproduce the error in Safari 9.1. I only see the callback being fired once.
var el = document.createElement('div');
var el2 = el.cloneNode();
document.body.appendChild(el);
document.body.appendChild(el2);
var ro = new ResizeObserver(function (entries) {
console.log('RO', entries.length);
});
ro.observe(el);
ro.observe(el2);
ro.unobserve(el2);
ro.unobserve(el2);
// RO 1
from resize-observer.
Related Issues (20)
- Refactor and reduce code to allow for a smaller bundle size HOT 1
- ResizeObserver loop completed with undelivered notifications HOT 13
- .disconnect() breaks additional observe calls HOT 1
- Improve code hints
- covering more cases HOT 10
- The UMD build doesn't not export the globals as expected HOT 5
- ResizeObserver loop completed with undelivered notifications (native works fine) HOT 13
- Improve the accuracy of device-pixel-content-box when moving elements across pixels
- Imports must specify file extension when "type": "module" HOT 4
- [Question] - How does this package compares with que-etc/resize-observer-polyfill ? HOT 3
- Missing null check HOT 3
- [spec] lastReportedSize should initialise with (-1, -1) HOT 1
- ResizeObserverEntry type does not match actual payload when using Safari versions 15.3.1 and older HOT 1
- the >>> and /deep/ combinators have been deprecated. Use :deep() instead HOT 1
- ResizeObserver loop completed with undelivered notifications. HOT 2
- Inconsistent anchoring in regex HOT 1
- import question HOT 5
- Update readme to point to public working draft HOT 2
- It throw error if target element inside a iframe on Chrome HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resize-observer.