Tremayne Christ
Tremayne Christ
This could be implemented by collecting a list of observable documents, rather than just listening to events on the main document.
This will have to be added to the next milestone ([v4](https://github.com/juggle/resize-observer/milestone/2)), as it will probably need to be part of the refactoring effort. cc: @goremikin
Initial support has been added in the [v4.0.0-1](https://github.com/juggle/resize-observer/releases/tag/v4.0.0-1) release. Feedback welcome!
IE only supports `dpi` values, so will have to add in some extra fluff for this. ```js matchMedia(`(resolution: ${window.devicePixelRatio * 96}dpi)`) ``` Something like this could work, although I'm unsure...
> pixels (1px = 1/96th of 1in) _Source: [w3schools](https://www.w3schools.com/cssref/css_units.asp)_ Therefore everything is based of off 96dpi and can use the above solution.
`matchMedia` is only available in IE10 and above, however, we can probably assume that anyone running IE9 is also using an older monitor.
Currently the library ignores any new observation on the same element, however, this needs to change and it should update the box option accordingly.
Would also be happy with staying around 2.8KB with all the additional features for v4.
@PedroUrday can you confirm you are using this version or higher https://github.com/TremayneChrist/ProtectJS/releases/tag/v3.0.1
Sorry I should have looked at your code more :) Yes, they do have access. In your example however, both of the objects have to be involved in the misuse....