Author: jmorliaguet Date: Wed Dec 28 00:09:20 2005 New Revision: 2091 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- fix for Opera Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original) +++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Wed Dec 28 00:09:20 2005 @@ -137,10 +137,10 @@ if (!node) return null; var type = node.nodeType; if (type == 1) return null; - if (type == 8) { + if (type == 8 || type == 4) { var comment = node.nodeValue; comment = comment.replace(/(^\[CDATA\[|\]\]$)/gm, ''); - if (!comment) return null; + if (!comment) return null; return JSON.parse(comment); } } -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins