Hi Peer,
re:
> Yes if there's another script present in the startup folder that replaces some innerHTML
> with something involving a command button that includes onclick like this:
Thanks, I can reproduce that now, it is a shutdown bug if a control is inserted dynamically but then MoI exits before the control has finished initializing.
I've got a fix prepared which I'll send to you.
> I expected that MoI would exit as soon as startupScript.js runs and z.js would never be reached.
When you call moi.exit() , the moi process is not immediately terminated, a close message is posted to the main window so it will follow the same procedure as the regular window close button being pushed.
So moi.exit() initiates the closing procedure but the app won't actually terminate until after the startup scripts have run and the main event loop processes the posted close event.
I'll set it up so that it will stop executing any more scripts once one has called moi.exit(), and maybe the alphabetic ordering is not working properly I'll check. EDIT: sorting seems to be working ok.
- Michael
|