]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Improve javascript onload handling.
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 12 Dec 2009 20:47:47 +0000 (15:47 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 12 Dec 2009 20:47:47 +0000 (15:47 -0500)
I noticed the onload hook running twice sometimes when using chromium.
Change from using arguments.callee.done to a onload_done variable fixed it.
I guess that the callee differed in chromium.

Probably the cause of the problem is that chrome supports both
window.onload and document.addEventListener.


No differences found