diff --git a/doc/godocs.js b/doc/godocs.js index a5b59fea772..b2fc1b357b9 100644 --- a/doc/godocs.js +++ b/doc/godocs.js @@ -13,7 +13,7 @@ */ if (window.addEventListener){ window.addEventListener('load', godocs_onload, false); -} else if (elm.attachEvent){ +} else if (window.attachEvent){ window.attachEvent('onload', godocs_onload); }