Browse files

Relax style loaded check

This fails under HTTPS loading environments due to security restrictions.
  • Loading branch information...
1 parent 03e457a commit 0ba4d6881a944746ec633c7efc29fa5c3fe10b44 @kpdecker kpdecker committed Feb 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lumbar-loader-standard.js
View
2 lumbar-loader-standard.js
@@ -20,7 +20,7 @@ lumbarLoader.loadCSS = function(moduleName, callback) {
var i = loaded.length;
while (i--) {
var sheet = loaded[i];
- if ((sheet.sheet && ('length' in sheet.sheet.cssRules)) || (sheet.styleSheet && sheet.styleSheet.cssText)) {
+ if (sheet.sheet || sheet.styleSheet) {
loaded.splice(i, 1);
callback();
}

0 comments on commit 0ba4d68

Please sign in to comment.