allow onloadFuncts to be set before wikibits.js is loaded
authorTom Gilder <tomgilder@users.mediawiki.org>
Sun, 30 Oct 2005 00:25:49 +0000 (00:25 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Sun, 30 Oct 2005 00:25:49 +0000 (00:25 +0000)
skins/common/wikibits.js

index 4bb674b..851fabf 100644 (file)
@@ -14,7 +14,9 @@ if (clientPC.indexOf('opera')!=-1) {
 // add any onload functions in this hook (please don't hard-code any events in the xhtml source)
 
 var doneOnloadHook;
-var onloadFuncts = [];
+
+if ( !window.onloadFuncts )
+  var onloadFuncts = [];
 
 function addOnloadHook( hookFunct )
 {