Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #160 from hellolindsay/master

I wrapped the recursive call to makeRequests in setTimeout to prevent "stack overflow" in IE7. Fixes #86
  • Loading branch information...
commit c1736e7b60337b4e8f900be163278ddc45a7fb96 2 parents b21c578 + 3c8a2f2
Scott Jehl authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 respond.src.js
View
5 respond.src.js
@@ -99,7 +99,10 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
ajax( thisRequest.href, function( styles ){
translate( styles, thisRequest.href, thisRequest.media );
parsedSheets[ thisRequest.href ] = true;
- makeRequests();
+
+ // by wrapping recursive function call in setTimeout
+ // we prevent "Stack overflow" error in IE7
+ setTimeout(function(){ makeRequests(); },0);
} );
}
},

1 comment on commit c1736e7

@twentronix

This commit (for respond.src.js) introduces a nasty flickering bug when used in IE8 for jQuery slideDown(). Could you please undo these changes and fix it in a different way? Thanks!

Please sign in to comment.
Something went wrong with that request. Please try again.