equal
deleted
inserted
replaced
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; |