includes/clientside/static/loader.js
changeset 420 301f546688d1
parent 189 fd0e9c7a7b28
child 520 4c16e87cfeae
--- a/includes/clientside/static/loader.js	Tue Feb 12 22:17:58 2008 -0500
+++ b/includes/clientside/static/loader.js	Wed Feb 13 21:59:07 2008 -0500
@@ -2,7 +2,6 @@
 
 function mdgInnerLoader(e)
 {
-  jws.startup();
   if(window.location.hash == '#comments') ajaxComments();
   window.onkeydown=isKeyPressed;
   window.onkeyup=function(e) { isKeyPressed(e); };
@@ -18,10 +17,14 @@
   initSliders();
   runOnloadHooks(e);
 }
-if(window.onload) var ld = window.onload;
-else var ld = function() {return;};
+var ld;
+if(window.onload) ld = window.onload;
+else ld = function() {return;};
 function enano_init(e) {
-  ld(e);
+  if ( typeof(ld) == 'function' )
+  {
+    ld(e);
+  }
   mdgInnerLoader(e);
 }