Author: nbelaevski
Date: 2009-08-02 21:01:47 -0400 (Sun, 02 Aug 2009)
New Revision: 15088
Modified:
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/swfobject.js
Log:
https://jira.jboss.org/jira/browse/RF-7190
Modified:
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/swfobject.js
===================================================================
---
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/swfobject.js 2009-08-01
00:27:52 UTC (rev 15087)
+++
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/swfobject.js 2009-08-03
01:01:47 UTC (rev 15088)
@@ -517,7 +517,9 @@
if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF &&
doc.styleSheets.length > 0) {
var ls = doc.styleSheets[doc.styleSheets.length - 1];
if (typeof ls.addRule == OBJECT) {
- ls.addRule(sel, decl);
+ try {
+ ls.addRule(sel, decl);
+ } catch(e) {}
}
}
}