forked from FormidableLabs/radium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't add extra media query listeners
The media query plugin would recreate the list of cached listeners for every media query in a single style object, causing multiple listeners, and far too many `render` calls. Instead, use a single instance for the entire plugin run. Fixes FormidableLabs#465
- Loading branch information
1 parent
4a51935
commit 504ed04
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters