:
Code executed by setTimeout() is run in a separate execution context to the function from which it was called. As a consequence, the this keyword for the called function will be set to the window (or global) object; it will not be the same as the this value for the function that called setTimeout.:
- - window.
, obj.style.display , . obj , dismiss, .
, obj - undefined window ( , , ), :
function dismiss(obj) {setTimeout(function () { undefined = "none" }, 20);}