chi mi aiuta a comprendere questo spezzone di codice che mi sembra di capire non centri nulla con il programma in questione ma solo a far funzionare la funzione setTimeout su IE?
codice:
// -- Start Comment
// to make setTimeout parameters compatible with IE, tip taken from the Stchur Talks website.
// URL: http://ecmascript.stchur.com/2006/06...out-revisited/
if (!window.sstchur) { window.sstchur = {}; }
if (!sstchur.web) { sstchur.web = {}; }
if (!sstchur.web.js) { sstchur.web.js = {}; }
sstchur.web.js.xb =
{
setTimeout: function(fnPointer, ms)
{
var args = arguments;
function proxy()
{
var params = new Array();
var i;
for (i = 2; i < args.length; i++)
{ params.push(args[i]); }
fnPointer.apply(this, params);
}
return window.setTimeout(proxy, ms);
}
};
// -- End Comment
grazie come sempre