Fix table 'styleSheet' is undefined

This commit is contained in:
qingwei.li 2016-08-23 13:51:36 +08:00
parent 228fee1e16
commit 6975c481fe

View File

@ -196,6 +196,7 @@
if (this.styleNode) {
let styleSheet = this.styleNode.sheet;
if (!styleSheet) return;
for (let i = 0, j = styleSheet.cssRules.length; i < j; i++) {
styleSheet.deleteRule(0);
}