includes/clientside/static/enano-lib-basic.js
changeset 59 7c4a851fb5c5
parent 57 b354deeaa4c4
child 85 7c68a18a27be
--- a/includes/clientside/static/enano-lib-basic.js	Tue Jul 10 00:40:52 2007 -0400
+++ b/includes/clientside/static/enano-lib-basic.js	Tue Jul 10 03:38:19 2007 -0400
@@ -275,11 +275,11 @@
 {
   if ( typeof ( func ) == 'function' )
   {
-    try
+    if ( typeof(onload_hooks.push) == 'function' )
     {
       onload_hooks.push(func);
     }
-    catch(e)
+    else
     {
       onload_hooks[onload_hooks.length] = func;
     }