2 var ExecuteAtEnd_CALLBACKS = [];
4 function ExecuteAtEnd_add( func ){
5 ExecuteAtEnd_CALLBACKS[ ExecuteAtEnd_CALLBACKS.length ] = func;
8 function ExecuteAtEnd_onEnd(){
11 if( !ExecuteAtEnd_CALLBACKS.length ) return;
13 while( func = ExecuteAtEnd_CALLBACKS[ ++i ] ){
16 ExecuteAtEnd_CALLBACKS.length = 0;