From dee5ad5c241ad3612c252f570f2b76c78b86dcfc Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 15 Nov 2009 12:57:33 -0800 Subject: [PATCH] godocs.js: fix bad variable name Thanks to anno.langen. Fixes #103. R=r https://golang.org/cl/155050 --- doc/godocs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }