Permalink
Browse files

Add null second arg to make old FF happy

  • Loading branch information...
kriszyp committed Sep 27, 2011
1 parent 5223f41 commit 1beda3a0bee174c40a71b571eac794d7e86ae7c7
Showing with 1 addition and 1 deletion.
  1. +1 −1 css.js
View
2 css.js
@@ -54,7 +54,7 @@ var cssCache = window.cssCache || (window.cssCache = {});
var docElement = document.documentElement;
var testDiv = docElement.insertBefore(document.createElement('div'), docElement.firstChild);
testDiv.id = require.toAbsMid(resourceDef).replace(/\//g,'-').replace(/\..*/,'') + "-loaded"; //cssIdTest[2];
- var displayStyle = (testDiv.currentStyle || getComputedStyle(testDiv)).display;
+ var displayStyle = (testDiv.currentStyle || getComputedStyle(testDiv, null)).display;
docElement.removeChild(testDiv);
if(displayStyle == "none"){
return callback();

0 comments on commit 1beda3a

Please sign in to comment.