#21794javascript error in tmenu_layers.php and gmenu_layers.php
Description
ie alerts a javascript error sometimes, whe the mouse is moved during pageload
there is a small timespan when the mousemovehandler is already registered but the script not loaded.
a try/catch construt fixes this:patch for tmenu_layers below, gmenu_layers is simmilar
427,428c427,428
< $GLOBALS[‘TSFE’]->JSeventFuncCalls[‘onmousemove’][‘GL_getMouse(e)’]= ‘try{GL_getMouse(e);}catch(ex){};’; // Should be called BEFORE any of the ‘local’ getMouse functions!
< $GLOBALS[‘TSFE’]->JSeventFuncCalls[‘onmousemove’][$this->WMid]= ‘try{GL’.$this->WMid.’_getMouse(e);}catch(ex){};’;
—-
> $GLOBALS[‘TSFE’]->JSeventFuncCalls[‘onmousemove’][‘GL_getMouse(e)’]= ‘GL_getMouse(e);’; // Should be called BEFORE any of the ‘local’ getMouse functions!
(issue imported from #M12923)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.