Permalink
Browse files

strict compare

  • Loading branch information...
Scott Jehl
Scott Jehl committed Jun 7, 2012
1 parent 795df18 commit 50fb527bb353e22a56acc54fba083f1afd2fba4a
Showing with 1 addition and 1 deletion.
  1. +1 −1 matchMedia.js
View
@@ -19,7 +19,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
div.innerHTML = '&shy;<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';
docElem.insertBefore(fakeBody, refNode);
- bool = div.offsetWidth == 42;
+ bool = div.offsetWidth === 42;
docElem.removeChild(fakeBody);
return { matches: bool, media: q };

0 comments on commit 50fb527

Please sign in to comment.