Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix screen resizer memory leak for mdl layout #6

Merged
merged 19 commits into from
Jul 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix es5 error
  • Loading branch information
jakelauritsen committed Jul 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 243ed70255ee2a3314ea07ee13d93d316259cd52
4 changes: 2 additions & 2 deletions src/layout/layout.js
Original file line number Diff line number Diff line change
@@ -187,8 +187,8 @@
// modified to query dependent elements rather than binding materialLayout to windows media query result
var materialLayouts = document.querySelectorAll('.mdl-layout');

for (let i = 0; i < materialLayouts.length; i++) {
let layout = materialLayouts[i];
for (var i = 0; i < materialLayouts.length; i++) {
var layout = materialLayouts[i];

if (layout) {
var drawerElement = layout.querySelector('.mdl-layout__drawer');