Skip to content

Commit

Permalink
WIP fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelauritsen committed Jul 22, 2024
1 parent 8ce3abd commit 03133a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

var mediaQuery = MaterialLayout.prototype.matchMedia_(
/** @type {string} */ (MaterialLayout.prototype.Constant_.MAX_WIDTH));
mediaQuery.onchange = screenSizeHandler;
mediaQuery.onchange = MaterialLayout.prototype.screenSizeHandler_;

MaterialLayout.prototype.screenSizeMediaQuery_ = mediaQuery;

Expand Down Expand Up @@ -196,7 +196,7 @@
* @private
*/

function screenSizeHandler(e) {
MaterialLayout.prototype.screenSizeHandler_ = function(e) {
// modified to query dependent elements rather than binding materialLayout to windows media query result
var materialLayouts = document.querySelectorAll('.mdl-layout');

Expand Down Expand Up @@ -227,7 +227,7 @@
}
}
}
}
};
/**
* Handles events of drawer button.
*
Expand Down Expand Up @@ -450,7 +450,7 @@
// Keep an eye on screen size, and add/remove auxiliary class for styling
// of small screens.

screenSizeHandler(this.screenSizeMediaQuery_);
this.screenSizeHandler_(this.screenSizeMediaQuery_);

// Initialize tabs, if any.
if (this.header_ && this.tabBar_) {
Expand Down

0 comments on commit 03133a7

Please sign in to comment.