Permalink
Browse files

Fix potential bug with IE8 and a parsing error

  • Loading branch information...
jefflembeck committed Dec 4, 2013
1 parent 9ca762f commit 3510fb2965db59ea476e4708746817d0a947b4fe

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -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);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -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);
View
@@ -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",
View
@@ -108,7 +108,9 @@
body.appendChild( div );
- docElem.insertBefore( body, docElem.firstChild );
+ if( fakeUsed ){
+ docElem.insertBefore( body, docElem.firstChild );
+ }
ret = div.offsetWidth;

0 comments on commit 3510fb2

Please sign in to comment.