# HG changeset patch # User Dan # Date 1227930749 18000 # Node ID 8875559bae0ecb2f94882bdac634851b516958b4 # Parent c1242466d06191c858d924aa1c2caa69990fc805 Fixed an onload recursion issue if load_component() is called during global onload diff -r c1242466d061 -r 8875559bae0e includes/clientside/static/enano-lib-basic.js --- 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)