mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-05-02 03:03:05 -04:00
Fixed a typo in testMediaQuery()
This commit is contained in:
@@ -9,7 +9,7 @@ define(['injectElementWithStyles'], function( injectElementWithStyles ) {
|
||||
return matchMedia(mq).matches;
|
||||
}
|
||||
|
||||
injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) {
|
||||
injectElementWithStyles('@media ' + mq + ' { #modernizr { position: absolute; } }', function( node ) {
|
||||
bool = (window.getComputedStyle ?
|
||||
getComputedStyle(node, null) :
|
||||
node.currentStyle)['position'] == 'absolute';
|
||||
|
||||
Reference in New Issue
Block a user