forked from google/material-design-lite
-
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.
Fix screen resizer memory leak for mdl layout (#6)
* Fix mem leak * Make screenResizeHanlder local and use change event * Make the media query global * Loop over all layouts * Update src/layout/layout.js Co-authored-by: Ryan Brown <[email protected]> * Only add one listener for all layouts * Formatting adjustments * Clean Linter * Add nvmrc * Clean linter * Fix es5 error * Fixing tests that rely on window.mediaQuery * Clean linter * No need for .nvmrc * Register a mock media list if one exists on the static def of layout * Make screenSizeMediaQuery static and add update docs * Use static method for storing the matchMedia * Make matchMedia static and update doc for closure * Fix test typo --------- Co-authored-by: Ryan Brown <[email protected]>
- Loading branch information
1 parent
d88b3be
commit 589db69
Showing
2 changed files
with
45 additions
and
29 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
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