Merge pull request #515 from imcotton/patch-1

Shift the type setting in order to work with Webkit, and fix typo for IE
This commit is contained in:
Alexis Sellier
2011-12-23 17:33:57 -08:00

View File

@@ -103,12 +103,12 @@ function loadStyles() {
new(less.Parser)().parse(styles[i].innerHTML || '', function (e, tree) {
var css = tree.toCSS();
var style = styles[i];
try {
style.innerHTML = css;
} catch (_) {
style.styleSheets.cssText = css;
}
style.type = 'text/css';
if (style.styleSheet) {
style.styleSheet.cssText = css;
} else {
style.innerHTML = css;
}
});
}
}