summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b48f14)
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.
* cvs: Add missing bit to Automator.
* Add complete Spanish basewiki translation done by Fernando Gonzalez de
Requena.
* cvs: Add missing bit to Automator.
* Add complete Spanish basewiki translation done by Fernando Gonzalez de
Requena.
+ * Improve javascript onload handling.
-- Joey Hess <joeyh@debian.org> Wed, 02 Dec 2009 17:22:21 -0500
-- Joey Hess <joeyh@debian.org> Wed, 02 Dec 2009 17:22:21 -0500
// other browsers
window.onload = run_hooks_onload;
// other browsers
window.onload = run_hooks_onload;
function run_hooks_onload() {
// avoid firing twice
function run_hooks_onload() {
// avoid firing twice
- if (arguments.callee.done)
- arguments.callee.done = true;