Login Register

dijit.wai.onload fires "Operation Aborted" IE bug

Hi there,

I've found that the following code lines fire the "Operation Aborted" IE bug , as there seems dijit is creating a div node when document.body() == null (document body is not yet closed):

if(dojo.isIE || dojo.isMoz){    // NOTE: checking in Safari messes things up
    dojo._loaders.unshift(dijit.wai.onload);
}

I've changed those lines to these and the error doesn't show anymore:

if(dojo.isIE || dojo.isMoz){    // NOTE: checking in Safari messes things up
    window.setTimeout(function(){dijit.wai.onload()}, 500);
}

I'd like to have a better solution to this bug, anyone wants to help me please?

------------
Alvaro