projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7592e1a
)
Use addEventListener instead.
embed
author
Olof-Joachim Frahm
<olof@macrolet.net>
Tue, 15 Oct 2013 20:41:14 +0000
(22:41 +0200)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Tue, 15 Oct 2013 20:42:45 +0000
(22:42 +0200)
src/sequel.js
patch
|
blob
|
history
diff --git
a/src/sequel.js
b/src/sequel.js
index
ef429d4
..
f1c389c
100644
(file)
--- 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);
- }
}
-});
+}));