diff -r c83ff194977a -r 723bb7acf914 includes/clientside/static/enano-lib-basic.js --- a/includes/clientside/static/enano-lib-basic.js Mon Jul 02 20:33:57 2007 -0400 +++ b/includes/clientside/static/enano-lib-basic.js Tue Jul 03 14:07:35 2007 -0400 @@ -283,7 +283,16 @@ function addOnloadHook(func) { if ( typeof ( func ) == 'function' ) - onload_hooks[onload_hooks.length] = func; + { + try + { + onload_hooks.push(func); + } + catch(e) + { + onload_hooks[onload_hooks.length] = func; + } + } } function runOnloadHooks(e)