From 9ae5ac1f316bd9fe83bc3f6091fda72196a769b7 Mon Sep 17 00:00:00 2001 From: Olof-Joachim Frahm Date: Tue, 15 Oct 2013 22:41:14 +0200 Subject: [PATCH] Use addEventListener instead. --- src/sequel.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sequel.js b/src/sequel.js index ef429d4..f1c389c 100644 --- a/src/sequel.js +++ b/src/sequel.js @@ -1,13 +1,12 @@ /* execute all script tags with type of x-common-lisp */ -window.onload = (function () { +window.addEventListener('load', (function () { var scripts = document.scripts; for (var i = 0; i < scripts.length; ++i) { var script = scripts[i]; /* TODO: what about errors? */ - if (script.type == "text/x-common-lisp") { + if (script.type == "text/x-common-lisp") lisp.evalString(script.text); - } } -}); +})); -- 1.7.10.4