marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

Fix ElementQueries always attaching to window and listening #162

Closed josephschmitt closed 7 years ago

josephschmitt commented 7 years ago

When we originally added UMD support, we forgot to move the logic that forcibly calls .listen() out of the block at the bottom and into the UMD logic block. This, in turn, meant that EQ was always being attached to window and listen was always being called, even when using EQ or ResizeSensor in a front-end environment with module support.

marcj commented 7 years ago

Thanks!

josephschmitt commented 7 years ago

👍🍻