cinera_pre.js: Fix GetOrSetRule()
This commit is contained in:
parent
0cfa87ba84
commit
22633794b5
|
@ -287,7 +287,7 @@ GetOrSetRule(SelectorText)
|
||||||
{
|
{
|
||||||
var cssRuleCode = document.all ? 'rules' : 'cssRules'; // account for IE and FF
|
var cssRuleCode = document.all ? 'rules' : 'cssRules'; // account for IE and FF
|
||||||
var Rules = StyleSheet[cssRuleCode];
|
var Rules = StyleSheet[cssRuleCode];
|
||||||
var RuleIndex = StyleSheet.insertRule(SelectorText + "{}", StyleSheet.length - 1);
|
var RuleIndex = StyleSheet.insertRule(SelectorText + "{}", Rules.length - 1);
|
||||||
Result = Rules[RuleIndex];
|
Result = Rules[RuleIndex];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue