includes/clientside/static/enano-lib-basic.js
changeset 40 723bb7acf914
parent 21 663fcf528726
child 57 b354deeaa4c4
equal deleted inserted replaced
39:c83ff194977a 40:723bb7acf914
   281 var onload_hooks = new Array();
   281 var onload_hooks = new Array();
   282 
   282 
   283 function addOnloadHook(func)
   283 function addOnloadHook(func)
   284 {
   284 {
   285   if ( typeof ( func ) == 'function' )
   285   if ( typeof ( func ) == 'function' )
   286     onload_hooks[onload_hooks.length] = func;
   286   {
       
   287     try
       
   288     {
       
   289       onload_hooks.push(func);
       
   290     }
       
   291     catch(e)
       
   292     {
       
   293       onload_hooks[onload_hooks.length] = func;
       
   294     }
       
   295   }
   287 }
   296 }
   288 
   297 
   289 function runOnloadHooks(e)
   298 function runOnloadHooks(e)
   290 {
   299 {
   291   var _errorTrapper = 0;
   300   var _errorTrapper = 0;