Fixed a typo in testMediaQuery()

This commit is contained in:
Stu Cox
2013-02-19 13:20:22 +00:00
parent 2a6a5483c5
commit fe93b626d6

View File

@@ -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';