r1684 - branches/bxe_2_0/js
[email protected] Thu, 24 May 2007 16:07:02 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Thu May 24 16:07:02 2007
New Revision: 1684
Log:
fix a liitle error with setparameter
Modified:
branches/bxe_2_0/js/bxeConfig.js
branches/bxe_2_0/js/bxeXMLDocument.js
Modified: branches/bxe_2_0/js/bxeConfig.js
==============================================================================
--- branches/bxe_2_0/js/bxeConfig.js (original)
+++ branches/bxe_2_0/js/bxeConfig.js Thu May 24 16:07:02 2007
@@ -73,6 +73,7 @@
bxe_config.scriptfiles = bxe_config.getContentMultiple("/config/files/scripts/file");
bxe_config.xslparams = bxe_config.getContentMultiple("/config/files/input/xslparams",true);
+
var ps = bxe_config.getPlugins();
for (var i=0; i < ps.length; i++) {
Modified: branches/bxe_2_0/js/bxeXMLDocument.js
==============================================================================
--- branches/bxe_2_0/js/bxeXMLDocument.js (original)
+++ branches/bxe_2_0/js/bxeXMLDocument.js Thu May 24 16:07:02 2007
@@ -178,7 +178,9 @@
processor = new XSLTProcessor();
try {
for (var i in bxe_config.xslparams) {
- processor.setParameter("",bxe_config.xslparams[i].name, bxe_config.xslparams[i].value);
+ if (bxe_config.xslparams[i].name && typeof bxe_config.xslparams[i].value != 'undefined') {
+ processor.setParameter(null,bxe_config.xslparams[i].name, bxe_config.xslparams[i].value);
+ }
}
processor.importStylesheet(newDocument);
} catch(e) {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs