Fixed an onload recursion issue if load_component() is called during global onload
--- a/includes/clientside/static/enano-lib-basic.js Fri Nov 28 22:11:51 2008 -0500
+++ b/includes/clientside/static/enano-lib-basic.js Fri Nov 28 22:52:29 2008 -0500
@@ -250,10 +250,12 @@
// async request, so if status != 200 at this point then we're screwed
if ( ajax.readyState == 4 && ajax.status == 200 )
{
- onload_hooks = new Array();
+ if ( onload_complete )
+ onload_hooks = new Array();
eval_global(ajax.responseText);
load_hide_win();
- runOnloadHooks();
+ if ( onload_complete )
+ runOnloadHooks();
}
}
catch(e)