Author: nbelaevski
Date: 2009-04-09 18:01:37 -0400 (Thu, 09 Apr 2009)
New Revision: 13479
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
Log:
https://jira.jboss.org/jira/browse/RF-5512
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2009-04-09
21:34:17 UTC (rev 13478)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2009-04-09
22:01:37 UTC (rev 13479)
@@ -316,10 +316,12 @@
Utils.getRule = function (className) {
var rule = null;
var sheets = document.styleSheets;
+ var lcClassName = className.toLowerCase();
+
for (var j = 0; !rule && j < sheets.length; j++) {
var rules = sheets[j].cssRules ? sheets[j].cssRules: sheets[j].rules;
for (var i = 0; !rule && i < rules.length; i++) {
- if (rules[i].selectorText.toLowerCase() == (className.toLowerCase())) {
+ if (rules[i].selectorText && rules[i].selectorText.toLowerCase() ==
lcClassName) {
rule = rules[i];
}
}