Skip to content
Snippets Groups Projects
Commit 95d46136 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1835094 by nod_: JSHint matchmedia.js.

parent 97fdb7a3
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ window.matchMedia = window.matchMedia || (function (doc, window) {
// Only execute the callback if the state has changed.
var oldstate = mql.matches;
mql.check();
if (oldstate != mql.matches) {
if (oldstate !== mql.matches) {
debounced.call(mql, mql);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment