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