I ran across this snippet in an internal web site, but I'm having trouble understanding it:
function safeWrap(f) {
return function() {
setTimeout.apply(window, [f, 0].concat([].slice.call(arguments)));
};
}
Later on, it's used like this:
// Set click handler.
(...).click(safeWrap(function() { ... } ));
What is this meant to do?