This is because it window.location.reloadis called from the context, so the actual function reload()does not have an object reference location.
In JavaScript, if you call a function foo.bar(), the context footherefore thisrefers to fooin the function bar.
, var a = foo.bar, a() ( ), , this undefined. , , .
- :
window.setTimeout(window.location.reload.bind(window.location), 200);
, window.location, , .
Mozilla .