Skip to content

Commit

Permalink
Merging in the comment-free parser. Respond.js no longer needs CSS co…
Browse files Browse the repository at this point in the history
…mment tokens to mark the end of a media query statement. Fixes scottjehl#12.
  • Loading branch information
scottjehl committed May 30, 2011
2 parents 9b713ff + deb5ebc commit 77ac03c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion respond.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion respond.src.js
Expand Up @@ -76,7 +76,7 @@

//find media blocks in css text, convert to style blocks
translate = function( styles, href, media ){
var qs = styles.match( /@media ([^\{]+)\{((?!@media)[\s\S])*(?=\}[\s]*\/\*\/mediaquery\*\/)/gmi ),
var qs = styles.match( /@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi ),
ql = qs && qs.length || 0,
//try to get CSS path
href = href.substring( 0, href.lastIndexOf( "/" )),
Expand Down

0 comments on commit 77ac03c

Please sign in to comment.