Skip to content

Commit

Permalink
Compile distribution for 6339f5c..807eda5
Browse files Browse the repository at this point in the history
  • Loading branch information
henrahmagix committed Dec 1, 2015
1 parent 807eda5 commit e485fe7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dest/respond.matchmedia.addListener.min.js

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

5 changes: 3 additions & 2 deletions dest/respond.matchmedia.addListener.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
}
for (var o in styleBlocks) {
if (styleBlocks.hasOwnProperty(o)) {
insertCss(styleBlocks[o].join("\n"), "all", stored.insertBefore);
insertCss(styleBlocks[o].join("\n"), o, stored.insertBefore);
}
}
}
Expand Down Expand Up @@ -272,12 +272,13 @@
}
return styles.replace(respond.regex.urls, "$1" + href + "$2$3");
}, translate = function(styles, href, media) {
styles = styles.replace(respond.regex.comments, "").replace(respond.regex.keyframes, "");
if (w.RESPOND_REPLACE_STYLES) {
styles = replaceUrls(styles, href);
storedSheets[href].styles = styles;
storedSheets[href].mediastyles = [];
}
var qs = styles.replace(respond.regex.comments, "").replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0, useMedia = !ql && media;
var qs = styles.match(respond.regex.media), ql = qs && qs.length || 0, useMedia = !ql && media;
if (useMedia) {
ql = 1;
}
Expand Down
Loading

0 comments on commit e485fe7

Please sign in to comment.