On Dec 14, 7:08 pm, gert <gert.cuyk...@g mail.comwrote:
is there any way i can make setTimeout work with a private obj ?
function() {
var obj
setTimeout("thr ead(obj)",0)
}
You can send a function as the first argument to setTimeout. This
function's closure will contain obj.
function() {
var obj;
setTimeout(func tion(){thread(o bj);},0);
}
Peter