]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - underlays/javascript/ikiwiki.js
update; openid email addresses now available so this is unblocked
[git.ikiwiki.info.git] / underlays / javascript / ikiwiki.js
index 1252f244f8429faab7d5e7dccdd175bdd37a33f7..aebc5cf7ed66395ec8277a1e748d29184226f960 100644 (file)
@@ -10,11 +10,13 @@ if (document.addEventListener) {
 // other browsers
 window.onload = run_hooks_onload;
 
+var onload_done = 0;
+
 function run_hooks_onload() {
        // avoid firing twice
-       if (arguments.callee.done)
+       if (onload_done)
                return;
-       arguments.callee.done = true;
+       onload_done = true;
 
        run_hooks("onload");
 }