Skip to content

Commit

Permalink
strict compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Jehl committed Jun 7, 2012
1 parent 795df18 commit 50fb527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 50fb527

Please sign in to comment.