-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
define(['ModernizrProto', 'testMediaQuery'], function( ModernizrProto, testMediaQuery ) { | ||
// Modernizr.mq tests a given media query, live against the current state of the window | ||
// A few important notes: | ||
// * If a browser does not support media queries at all (eg. oldIE) the mq() will always return false | ||
// * A max-width or orientation query will be evaluated against the current state, which may change later. | ||
// * You must specify values. Eg. If you are testing support for the min-width media query use: | ||
// Modernizr.mq('(min-width:0)') | ||
// usage: | ||
// Modernizr.mq('only screen and (max-width:768)') | ||
/** Modernizr.mq tests a given media query, live against the current state of the window | ||
* A few important notes: | ||
* If a browser does not support media queries at all (eg. oldIE) the mq() will always return false | ||
* A max-width or orientation query will be evaluated against the current state, which may change later. | ||
* You must specify values. Eg. If you are testing support for the min-width media query use: | ||
Modernizr.mq('(min-width:0)') | ||
* usage: | ||
* Modernizr.mq('only screen and (max-width:768)') | ||
*/ | ||
var mq = ModernizrProto.mq = testMediaQuery; | ||
return mq; | ||
}); |