#13 window.onload get destroyed by layermenu.js

open
nobody
None
5
2005-08-27
2005-08-27
No

the loadHander() is loaded directly into the
window.onload event. If there is any existing functions
they are lost.

needs to do something like

if (typeof window.onload != 'function') {
window.onload = loadHandler;
}
else {
var oldOnload = window.onload;
window.onload = function () {
oldOnload();
loadHandler();
}
}

Discussion


Log in to post a comment.