Update c3.js and c3.min.js

parent 3cd32b34
...@@ -273,6 +273,10 @@ ...@@ -273,6 +273,10 @@
var nodeCss; var nodeCss;
var styleCache = {}; var styleCache = {};
c3.clearStyleCache = function(){
styleCache = {};
}
// Seek a specific value in the stylesheets of a document // Seek a specific value in the stylesheets of a document
function getStyleValue($$, selector, property) { function getStyleValue($$, selector, property) {
function cache(value){ function cache(value){
...@@ -318,6 +322,7 @@ ...@@ -318,6 +322,7 @@
} }
for (var styleId = 0; styleId < document.styleSheets.length; styleId++) { for (var styleId = 0; styleId < document.styleSheets.length; styleId++) {
sheet = document.styleSheets[styleId]; sheet = document.styleSheets[styleId];
if(!sheet.cssRules) return undefined;
for (var ruleId = 0; ruleId < sheet.cssRules.length; ruleId++) { for (var ruleId = 0; ruleId < sheet.cssRules.length; ruleId++) {
rule = sheet.cssRules[ruleId]; rule = sheet.cssRules[ruleId];
if(rule.type !== CSSRule.STYLE_RULE) continue; if(rule.type !== CSSRule.STYLE_RULE) continue;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment