[TYPO3-core] FYI: #10375: 2 little JS-Errors that bug IE

Steffen Kamper info at sk-typo3.de
Sat Feb 7 22:49:18 CET 2009


Martin Kutschker schrieb:

>> But Steffen, please have a look what you pass as parameter to
>> setTimeout(). The way you have written it is the *return value* of the
>> function call busy.startTimer(). The reason is the brackets! You may
>> pass either a function or a string to be evaluated.
> 
> Docs with examples:
> 
> https://developer.mozilla.org/en/DOM/window.setTimeout
> http://msdn.microsoft.com/de-de/library/ms536753(en-us,VS.85).aspx
> 
> Masi

thanks Masi. I will do a simple document to check different behaviour in 
FF ans IE to verify.

Funny that we have such in code:
setTimeout(function() {
	$('search-query').activate();
}, 200);

which also shouldn't work?

vg Steffen


More information about the TYPO3-team-core mailing list