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

Christian Steinert christian_steinert at web.de
Thu Jul 2 17:29:20 CEST 2009


> in OpenCms when clicking on a folder item in workplace:
> 
> assignment to undeclared variable i
> [Break on this error] for (i=0; i<childs.length; i++) {\r\n
> tree.js (Linie 421)

This is very strange. normally, "i" should be made into a global variable, if it has not been declared before.
This can lead to horrible bugs, of course, so variables should not be global, if it can be avoided at all, but that there is an explicit error being reported there, is rather surprising to me.

The same goes for the second example
> [Break on this error] queueLength = queue.length;\r\n

Normally, assigning to an undefined variable should automatically create a global variable.

Regards
Christian
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de




More information about the opencms-dev mailing list