Try this:
function postpone( fun )
{
window.setTimeout(fun,0);
}
so if you will call postpone(do_something); that do_something will be executed after all UI events that are in the event queue for the moment of postpone() call.
Try this:
function postpone( fun )
{
window.setTimeout(fun,0);
}
so if you will call postpone(do_something); that do_something will be executed after all UI events that are in the event queue for the moment of postpone() call.