[opencms-dev] Script errors in with Firefox 3.5 / Opencms 7.0.5

Roman Uhlig roman.uhlig at knve.de
Thu Jul 2 14:46:56 CEST 2009


To me it seems it's only happening in the following scenario, when you use a
not declared variable with the same identifier in alternative parts of a
javascript script, e.g.:

if (true) {
  v1 = 'a';
} else {
  v1 = 'b';
}

while this is working fine:

var v1;
if (true) {
  v1 = 'a';
} else {
  v1 = 'b';
}

Best regards,
Roman
-- 
View this message in context: http://www.nabble.com/Script-errors-in-with-Firefox-3.5---Opencms-7.0.5-tp24302151p24306104.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list