Merge pull request #534 from troolee/revert-532-patch-1

Revert "fixed ie8 not support"
This commit is contained in:
Pavel Reznikov 2016-10-03 13:40:58 -07:00 committed by GitHub
commit b0e68cafca

View file

@ -61,7 +61,7 @@
style.appendChild(document.createTextNode(''));
}
document.getElementsByTagName('head')[0].appendChild(style);
return style.sheet || style.styleSheet;
return style.sheet;
},
removeStylesheet: function(id) {
@ -71,7 +71,7 @@
insertCSSRule: function(sheet, selector, rules, index) {
if (typeof sheet.insertRule === 'function') {
sheet.insertRule(selector + '{' + rules + '}', index);
} else if (sheet.addRule) {
} else if (typeof sheet.addRule === 'function') {
sheet.addRule(selector, rules, index);
}
},