Skip to content

Commit

Permalink
Fix potential bug with IE8 and a parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflembeck committed Dec 4, 2013
1 parent 9ca762f commit 3510fb2
Show file tree
Hide file tree
Showing 6 changed files with 12 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.

4 changes: 3 additions & 1 deletion dest/respond.matchmedia.addListener.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@
docElem.style.fontSize = "100%";
body.style.fontSize = "100%";
body.appendChild(div);
docElem.insertBefore(body, docElem.firstChild);
if (fakeUsed) {
docElem.insertBefore(body, docElem.firstChild);
}
ret = div.offsetWidth;
if (fakeUsed) {
docElem.removeChild(body);
Expand Down
2 changes: 1 addition & 1 deletion dest/respond.min.js

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

4 changes: 3 additions & 1 deletion dest/respond.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
docElem.style.fontSize = "100%";
body.style.fontSize = "100%";
body.appendChild(div);
docElem.insertBefore(body, docElem.firstChild);
if (fakeUsed) {
docElem.insertBefore(body, docElem.firstChild);
}
ret = div.offsetWidth;
if (fakeUsed) {
docElem.removeChild(body);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Respond.js",
"description": "min/max-width media query polyfill",
"version": "1.4.0",
"version": "1.4.1",
"homepage": "https://github.com/scottjehl/Respond",
"author": {
"name": "Scott Jehl",
Expand Down
4 changes: 3 additions & 1 deletion src/respond.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@

body.appendChild( div );

docElem.insertBefore( body, docElem.firstChild );
if( fakeUsed ){
docElem.insertBefore( body, docElem.firstChild );
}

ret = div.offsetWidth;

Expand Down

0 comments on commit 3510fb2

Please sign in to comment.